Exemplo n.º 1
0
 internal void Trigger(AnalogUserCommand command, UserCommandArgs commandArgs, GameTime gameTime)
 {
     for (int i = 0; i < (layeredControllers?.Count ?? 0); i++)
     {
         layeredControllers[i].Trigger(command, commandArgs, gameTime);
         if (commandArgs.Handled)
         {
             return;
         }
     }
     analogUserCommandsArgs[command]?.Invoke(commandArgs, gameTime);
 }
Exemplo n.º 2
0
 internal void Trigger(AnalogUserCommand command, UserCommandArgs commandArgs, GameTime gameTime)
 {
     analogUserCommandsArgs[command]?.Invoke(commandArgs, gameTime);
 }
Exemplo n.º 3
0
 public void RemoveEvent(AnalogUserCommand command, Action <UserCommandArgs, GameTime> action)
 {
     analogUserCommandsArgs[command] -= action;
 }
Exemplo n.º 4
0
 public void AddEvent(AnalogUserCommand command, Action <UserCommandArgs, GameTime> action)
 {
     analogUserCommandsArgs[command] += action;
 }