示例#1
0
 public MapBlock(MapFacet parent, sbyte altitude)
 {
     _Parent  = parent;
     _EntryId = 0xFFFFFFFFu;
     _Tiles   = new MapTile[64];
     for (int i = 0; i < 64; ++i)
     {
         _Tiles[i] = new MapTile(this, new LandMapTile(0x0002, altitude), null);
     }
 }
示例#2
0
 public MapBlock(MapFacet parent, uint index, IMapBlockData data)
 {
     _Parent  = parent;
     _EntryId = index;
     //_Patch = null;
     _Tiles = new MapTile[64];
     for (int i = 0; i < 64; ++i)
     {
         _Tiles[i] = new MapTile(this, data.Lands[i], data.Items[i]);
     }
 }
示例#3
0
        //                        --------------------------------------------------------------

        #endregion

        IMapFacet[] IDataFactory.GetMapFacets()
        {
            var count = Math.Max(container_Map.Length, container_Sta.Length);
            var facet = new IMapFacet[count];
            for (byte m = 0; m < count; ++m)
                facet[m] = new MapFacet(this, m, (!Data.DataType.HasFlag(UODataType.UseExtFacet) ? Data.DataOptions.majorFacet : Data.DataOptions.minorFacet)[m]);
            return facet;
        }
示例#4
0
 public MapBlock(MapFacet parent, sbyte altitude)
 {
     _Parent = parent;
     _EntryId = 0xFFFFFFFFu;
     _Tiles = new MapTile[64];
     for (int i = 0; i < 64; ++i)
         _Tiles[i] = new MapTile(this, new LandMapTile(0x0002, altitude), null);
 }
示例#5
0
 public MapBlock(MapFacet parent, uint index, IMapBlockData data)
 {
     _Parent = parent;
     _EntryId = index;
     //_Patch = null;
     _Tiles = new MapTile[64];
     for (int i = 0; i < 64; ++i)
         _Tiles[i] = new MapTile(this, data.Lands[i], data.Items[i]);
 }