示例#1
0
 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;
 }
示例#2
0
 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.");
 }
示例#3
0
 public World LoadWorld(string worldName)
 {
     GameServer.Instance.WorldLoaded = true;
     CurrentWorld = new World (this).LoadWorld(worldName);
     return CurrentWorld;
 }