Function server::game_loop::make_effects
source · [−]fn make_effects(
action: ClientAction,
world: &World,
(handle, player): (PcHandle, &PlayerCharacter),
chunk_index: usize
) -> Vec<(usize, Effect)>
Expand description
Takes a ClientAction, the PlayerCharacter associated with the action, and the World, and comes up with the Effects that the action causes. The return value contains the appropriate chunk index for each Effect.