Struct veloren_common::npc::BodyNames
source · pub struct BodyNames {
pub keyword: String,
pub names_0: Vec<String>,
pub names_1: Option<Vec<String>>,
}
Expand description
Body-specific NPC name metadata.
NOTE: Deliberately don’t (yet?) implement serialize.
Fields§
§keyword: String
The keyword used to refer to this body type (e.g. via the command console). Should be unique per body type.
names_0: Vec<String>
A list of canonical names for NPCs with this body types (currently used when spawning this kind of NPC from the console). Going forward, these names will likely be split up by species.
names_1: Option<Vec<String>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for BodyNames
impl<'de> Deserialize<'de> for BodyNames
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BodyNames
impl Send for BodyNames
impl Sync for BodyNames
impl Unpin for BodyNames
impl UnwindSafe for BodyNames
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more