public static CommandSlot CreateCommandReference([CanBeNull] GameCommand command)
        {
            var isActive = command != null && command.ActivationType == CommandActivationType.Active;

            return(new CommandSlot(command, isActive));
        }
Example #2
0
 public CommandSlot([CanBeNull] GameCommand command = null, bool isActive = false)
 {
     Command  = command;
     IsActive = isActive;
 }