Esempio n. 1
0
 protected override void OnMapEvent(IFragsurfMap map, MapEventType eventType, bool hasNextMap)
 {
     if (eventType == MapEventType.Loaded)
     {
         SteamServer.ServerName = GameServer.Instance.Socket.ServerName ?? DefaultServerName;
         SteamServer.MapName    = MapLoader.Instance.CurrentMap.Name;
     }
 }
Esempio n. 2
0
        private void OnMapEvent(IFragsurfMap map, MapEventType eventType, bool hasNextMap)
        {
            switch (eventType)
            {
            case MapEventType.Loaded:
                _inMap = true;
                LoadPlugins(PluginSpace.InGame);
                break;

            case MapEventType.Unloaded:
                _inMap = false;
                UnloadPlugins(PluginSpace.InGame);
                break;
            }
        }
Esempio n. 3
0
 protected virtual void OnMapEvent(IFragsurfMap map, MapEventType eventType, bool hasNextMap)
 {
 }