Example #1
0
 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);
           }
     }
 }
Example #2
0
 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); }
 }
Example #3
0
 public MapTile(MapBlock parent, ILandMapTile land, IItemMapTile[] items)
 {
     _Parent = parent;
     _Land   = land;
     _Items  = items != null ? new List <IItemMapTile>(items) : new List <IItemMapTile>(0);
 }
Example #4
0
 public MapTile(MapBlock parent, ILandMapTile land, IItemMapTile[] items)
 {
     _Parent = parent;
     _Land   = land;
     _Items  = items != null ? new List<IItemMapTile>(items) : new List<IItemMapTile>(0);
 }