예제 #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;
 }