public TileObjectSubTilesModule(TileObjectSubTilesModule copyFrom = null, List<TileObjectData> newData = null)
 {
     if (copyFrom == null)
         data = null;
     else if (copyFrom.data == null)
         data = null;
     else
     {
         data = new List<TileObjectData>(copyFrom.data.Count);
         for (int index = 0; index < data.Count; ++index)
             data.Add(new TileObjectData(copyFrom.data[index]));
     }
 }
 public TileObjectSubTilesModule(TileObjectSubTilesModule copyFrom = null, List <TileObjectData> newData = null)
 {
     if (copyFrom == null)
     {
         data = null;
         return;
     }
     if (copyFrom.data == null)
     {
         data = null;
         return;
     }
     data = new List <TileObjectData>(copyFrom.data.Count);
     for (int i = 0; i < data.Count; i++)
     {
         data.Add(new TileObjectData(copyFrom.data[i]));
     }
 }
 public TileObjectSubTilesModule(TileObjectSubTilesModule copyFrom = null, List<TileObjectData> newData = null)
 {
     if (copyFrom == null)
     {
         this.data = null;
         return;
     }
     if (copyFrom.data == null)
     {
         this.data = null;
         return;
     }
     this.data = new List<TileObjectData>(copyFrom.data.Count);
     for (int i = 0; i < this.data.Count; i++)
     {
         this.data.Add(new TileObjectData(copyFrom.data[i]));
     }
 }
示例#4
0
 public TileObjectSubTilesModule(TileObjectSubTilesModule copyFrom = null, List <TileObjectData> newData = null)
 {
     if (copyFrom == null)
     {
         this.data = (List <TileObjectData>)null;
     }
     else if (copyFrom.data == null)
     {
         this.data = (List <TileObjectData>)null;
     }
     else
     {
         this.data = new List <TileObjectData>(copyFrom.data.Count);
         for (int index = 0; index < this.data.Count; ++index)
         {
             this.data.Add(new TileObjectData(copyFrom.data[index]));
         }
     }
 }
示例#5
0
 public void FullCopyFrom(TileObjectData copy)
 {
     if (copy == null)
     {
         return;
     }
     this._usesCustomCanPlace = copy._usesCustomCanPlace;
     this._alternates = copy._alternates;
     this._anchor = copy._anchor;
     this._anchorTiles = copy._anchorTiles;
     this._tileObjectBase = copy._tileObjectBase;
     this._liquidDeath = copy._liquidDeath;
     this._liquidPlacement = copy._liquidPlacement;
     this._placementHooks = copy._placementHooks;
     this._tileObjectDraw = copy._tileObjectDraw;
     this._tileObjectStyle = copy._tileObjectStyle;
     this._tileObjectCoords = copy._tileObjectCoords;
     this._subTiles = new TileObjectSubTilesModule(copy._subTiles, null);
     this._hasOwnSubTiles = true;
 }