Skip to main content

commit_commands

Function commit_commands 

Source
pub fn commit_commands(
    state: &mut GameState,
    commands: &[Command],
) -> Vec<Event>
Expand description

Apply a batch of commands to the GameState and return emitted events. Each command mutates the state and produces one or more events.