export function control_player(
move: boolean,
yaw: number,
pitch: number,
min_pitch = 0,
max_pitch = 0
) {
return (game: Game, entity: Entity) => {
game.World.Signature[entity] |= Has.ControlPlayer;
game.World.ControlPlayer[entity] = {
Move: move,
Yaw: yaw,
Pitch: pitch,
MinPitch: min_pitch,
MaxPitch: max_pitch,
};
};
}