Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 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);
     }
 }