Enum naia_shared::EntityActionType
source · [−]#[repr(u8)]
pub enum EntityActionType {
UpdateComponent,
RemoveComponent,
SpawnEntity,
DespawnEntity,
OwnEntity,
DisownEntity,
InsertComponent,
Unknown,
}Expand description
Enum used as a shared network protocol, representing various message types related to Entities/Components
Variants
UpdateComponent
Action indicating a Replica to be updated
RemoveComponent
Action indicating a Replica to be deleted
SpawnEntity
Action indicating an Entity to be created
DespawnEntity
Action indicating an Entity to be deleted
OwnEntity
Action indicating an Entity to be assigned
DisownEntity
Action indicating an Entity to be unassigned
InsertComponent
Action indicating a Component to be added to an Entity
Unknown
Unknown / Undefined message, should always be last variant in this list
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EntityActionType
impl Send for EntityActionType
impl Sync for EntityActionType
impl Unpin for EntityActionType
impl UnwindSafe for EntityActionType
Blanket Implementations
Mutably borrows from an owned value. Read more