WorldAdded() public method

public WorldAdded ( World world ) : void
world World
return void
示例#1
0
 private void OnWorldAdded(World world)
 {
     world.Manager = this;
     if (world is GameWorld)
     {
         Monitor.WorldAdded(world);
     }
     log.Info($"World {world.Id} ({world.Name}) added");
 }
示例#2
0
 void OnWorldAdded(World world)
 {
     world.Manager = this;
     if (world is GameWorld)
     {
         Monitor.WorldAdded(world);
     }
     log.InfoFormat("World {0}({1}) added.", world.Id, world.Name);
 }
 public static World AddWorld(World world)
 {
     world.Id         = Interlocked.Increment(ref nextWorldId);
     Worlds[world.Id] = world;
     if (world is GameWorld)
     {
         Monitor.WorldAdded(world);
     }
     return(world);
 }