示例#1
0
        public OldCommand.Command FindCommand(OldCommand.Command commandType, bool inMenu)
        {
            foreach (var command in inMenu ? _menuCommands : _gameCommands)
            {
                if (command.GetType() == commandType.GetType())
                {
                    return(command);
                }
            }

            return(null);
        }