Enum naia_shared::EntityActionType[][src]

#[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

Converts the action type to u8

Gets an EntityActionType from a u8

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.