예제 #1
0
파일: Engine.cs 프로젝트: Skinny1001/PlayUO
 public static void QueueMapLoad(int xBlock, int yBlock, TileMatrix matrix)
 {
     if (((xBlock >= 0) && (yBlock >= 0)) && ((xBlock < matrix.BlockWidth) && (yBlock < matrix.BlockHeight)))
     {
         int num = (xBlock * 0x200) + yBlock;
         bool ghost = false;
         Mobile player = World.Player;
         if (player != null)
         {
             ghost = player.Ghost;
         }
         if (!matrix.CheckLoaded(xBlock, yBlock))
         {
             m_MapLoadQueue.Enqueue(new Worker(xBlock, yBlock, matrix));
         }
     }
 }