Beispiel #1
0
    public void RegisterGameMode(string name, IGameMode mode)
    {
        if (mode == null)
        {
            return;
        }

        if (modes.ContainsKey(name))
        {
            return;
        }

        mode.Register();

        modes.Add(name, mode);
    }