Пример #1
0
        public static CommandSlot CreateCommandReference([CanBeNull] GameCommand command)
        {
            var isActive = command != null && command.ActivationType == CommandActivationType.Active;

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