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§
§impl<'de> Deserialize<'de> for AgentKind
impl<'de> Deserialize<'de> for AgentKind
§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
§impl IntoEnumIterator for AgentKind
impl IntoEnumIterator for AgentKind
type Iterator = AgentKindIter
fn iter() -> AgentKindIter ⓘ
§impl Ord for AgentKind
impl Ord for AgentKind
§impl PartialOrd for AgentKind
impl PartialOrd for AgentKind
§impl Serialize for AgentKind
impl Serialize for AgentKind
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)