Skip to main content

command

Attribute Macro command 

Source
#[command]
Expand description

Marks a struct as a protocol command (state-changing request).

Derives Serialize, Deserialize, implements [Command] and [ProtocolMeta].

§Example

ⓘ
#[galeon_engine::command]
pub struct SpawnUnit {
    pub unit_id: u64,
    pub location_id: u64,
}