/// <summary> /// Loads a map and spawns all the entities. /// </summary> /// <param name="mapName"></param> /// <param name="renderWorld"></param> /// <param name="soundWorld"></param> /// <param name="isServer"></param> /// <param name="isClient"></param> /// <param name="randSeed"></param> public abstract void InitFromNewMap(string mapName, idRenderWorld renderWorld, idSoundWorld soundWorld, bool isServer, bool isClient, int randSeed);
public override void InitFromNewMap(string mapName, idRenderWorld renderWorld, idSoundWorld soundWorld, bool isServer, bool isClient, int randomSeed) { idConsole.DeveloperWriteLine("InitFromNewMap"); _isServer = isServer; _isClient = isClient; _isMultiplayer = isServer || isClient; if(_currentMapFileName != null) { idConsole.Warning("TODO: MapShutdown"); // TODO: MapShutdown(); } idConsole.WriteLine("----------- Game Map Init ------------"); _gameState = GameState.Startup; _currentRenderWorld = renderWorld; _currentSoundWorld = soundWorld; LoadMap(mapName, randomSeed); idConsole.Warning("TODO: InitScriptForMap"); // TODO: InitScriptForMap(); MapPopulate(); _gameRules.Reset(); _gameRules.Precache(); // free up any unused animations // TODO: animationLib.FlushUnusedAnims(); _gameState = GameState.Active; idConsole.WriteLine("--------------------------------------"); }