public World CreateWorld(string worldName) { GameServer.Instance.WorldLoaded = true; if (!WorldExists (worldName)) { CurrentWorld = new World (this).CreateNewWorld (worldName); return CurrentWorld; } Logger.LogWarning ("Loading world \"{0}\" as it already exists.", worldName); CurrentWorld = new World (this).LoadWorld (worldName); return CurrentWorld; }
public GameTimer(World.Time offset) { _totalSeconds = offset.seconds; _secondsInTick = 0; _maxSecondsInTick = offset.maxSecondsInTicks; _tick = offset.tick; _watch = new SetableStopwatch (new TimeSpan(0, 0, 0)); _watch.Start (); _previousSecond = (int)_watch.Seconds; Logger.Log ("Game Timer Initialized."); }
public World LoadWorld(string worldName) { GameServer.Instance.WorldLoaded = true; CurrentWorld = new World (this).LoadWorld(worldName); return CurrentWorld; }