Exemplo n.º 1
0
 // Pre-condition: `movement != GameInputs.Movement.None`
 public static void Process(
     GameInputs.Movement movement,
     Entity entity,
     Registry registry
     )
 {
     registry.AssignComponent(
         entity,
         new VelocityComp {
         data = movement.ToVector2() * 15
     }
         );
 }