pub enum AgentKind {
Player,
Npc(u16),
Gadget(u16),
}
Expand description
Possible agent kinds.
Variants§
Player
Agent is a player.
prof
is the Profession and elite
the Elite-Specialization.
Npc(u16)
Agent is an NPC.
The included id is the (reliable) species id.
Gadget(u16)
Agent is a gadget.
The included id is a volatile pseudo id.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AgentKind
impl<'de> Deserialize<'de> for AgentKind
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AgentKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AgentKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for AgentKind
impl Ord for AgentKind
source§impl PartialEq for AgentKind
impl PartialEq for AgentKind
source§impl PartialOrd for AgentKind
impl PartialOrd for AgentKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AgentKind
impl Serialize for AgentKind
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for AgentKind
impl Eq for AgentKind
impl StructuralPartialEq for AgentKind
Auto Trait Implementations§
impl Freeze for AgentKind
impl RefUnwindSafe for AgentKind
impl Send for AgentKind
impl Sync for AgentKind
impl Unpin for AgentKind
impl UnwindSafe for AgentKind
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