public GameEngine(World world, GameMode mode) { m_world = world; this.GameMode = mode; m_players = new List<Player>(); m_config = new GameConfig { RequirePlayer = true, MaxMoveTime = TimeSpan.Zero, MinTickTime = TimeSpan.FromMilliseconds(50), }; m_minTickTimer = new Timer(this._MinTickTimerCallback); m_maxMoveTimer = new Timer(this._MaxMoveTimerCallback); this.LastSaveID = Guid.Empty; this.LastLoadID = Guid.Empty; }
protected GameEngine(string gameDir, GameOptions options) { CommonInit(); m_gameDir = gameDir; this.GameMode = options.Mode; this.World = new World(options.Mode, options.TickMethod); m_players = new List<Player>(); m_playerIDCounter = 2; m_config = new GameConfig { RequirePlayer = true, MaxMoveTime = TimeSpan.Zero, MinTickTime = TimeSpan.FromMilliseconds(50), IronPythonEnabled = ServerConfig.IronPythonEnabled, }; this.LastSaveID = Guid.Empty; this.LastLoadID = Guid.Empty; }