Ejemplo n.º 1
0
 public GridButton(string label, ManualMove movement)
 {
     this.label = label;
     this.movement = movement;
 }
Ejemplo n.º 2
0
 private ManualMove AddMove(ManualMove move, BoundKey binding)
 {
     int id = moves.Count;
     move.SetIdAndListener(id, HandleMoveStateChange);
     moves.Add(move);
     State.keyBindings.ListenKeyUp(binding, move.HandleKeyUp);
     State.keyBindings.ListenKeyDown(binding, move.HandleKeyDown);
     return move;
 }