Beispiel #1
0
 public void WorldAdded(World world)
 {
     lock (worldLock)
     {
         Position pos    = GetRandPosition();
         Portal   portal = new Portal(0x0712, null)
         {
             Size          = 80,
             WorldInstance = world,
             Name          = world.Name
         };
         portal.Move(pos.X + 0.5f, pos.Y + 0.5f);
         nexus.EnterWorld(portal);
         portals.Add(world, portal);
     }
 }
 public void WorldAdded(World world)
 {
     lock (worldLock)
     {
         Position pos    = GetRandPosition();
         var      portal = new Portal(manager, 0x0712, null)
         {
             Size          = 80,
             WorldInstance = world,
             Name          = world.Name
         };
         portal.Move(pos.X + 0.5f, pos.Y + 0.5f);
         nexus.EnterWorld(portal);
         portals.Add(world, portal);
         log.InfoFormat("World {0}({1}) added.", world.Id, world.Name);
     }
 }
Beispiel #3
0
 public void WorldAdded(World world)
 {
     lock (worldLock)
     {
         Position pos    = GetRandPosition();
         Portal   portal = new Portal(manager, 0x0712, null)
         {
             Size          = 80,
             WorldInstance = world,
             Name          = world.Name
         };
         portal.Move(pos.X + 0.5f, pos.Y + 0.5f);
         nexus.EnterWorld(portal);
         portals.Add(world, portal);
         Console.WriteLine("World {0}({1}) added to monitor.", world.Id, world.Name);
     }
 }