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; } }
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; } }
protected virtual void OnMapEvent(IFragsurfMap map, MapEventType eventType, bool hasNextMap) { }