public IMapBlock this[uint index] { get { return(index < _Blocks.Length ? _Blocks[index] ?? (_Blocks[index] = new MapBlock(this, (uint)index, (dataFactory as IDataFactoryReader).GetMapBlock(_MapIndex, index))) : null); } set { if (index < _Blocks.Length) { _Blocks[index] = (value as MapBlock); } } }
public IMapBlock this[uint index] { get { return index < _Blocks.Length ? _Blocks[index] ?? (_Blocks[index] = new MapBlock(this, (uint)index, (dataFactory as IDataFactoryReader).GetMapBlock(_MapIndex, index))) : null; } set { if (index < _Blocks.Length) _Blocks[index] = (value as MapBlock); } }
public MapTile(MapBlock parent, ILandMapTile land, IItemMapTile[] items) { _Parent = parent; _Land = land; _Items = items != null ? new List <IItemMapTile>(items) : new List <IItemMapTile>(0); }
public MapTile(MapBlock parent, ILandMapTile land, IItemMapTile[] items) { _Parent = parent; _Land = land; _Items = items != null ? new List<IItemMapTile>(items) : new List<IItemMapTile>(0); }