private void OnWorldAdded(World world) { world.Manager = this; if (world is GameWorld) { Monitor.WorldAdded(world); } log.Info($"World {world.Id} ({world.Name}) added"); }
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); }