1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::{derive_serde, serde};
// Enum used as a shared network protocol, representing various message types
// related to Entities/Components
#[derive(Copy)]
#[derive_serde]
pub enum EntityActionType {
// Action indicating an Entity to be created
SpawnEntity,
// Action indicating an Entity to be deleted
DespawnEntity,
// Action indicating a Component to be added to an Entity
InsertComponent,
// Action indicating a Component to be deleted
RemoveComponent,
// Action indicating a non-operation
Noop,
}