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); } }
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]); } }
// -------------------------------------------------------------- #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; }
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); }
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]); }