public static CommandSlot CreateCommandReference([CanBeNull] GameCommand command) { var isActive = command != null && command.ActivationType == CommandActivationType.Active; return(new CommandSlot(command, isActive)); }
public CommandSlot([CanBeNull] GameCommand command = null, bool isActive = false) { Command = command; IsActive = isActive; }