Пример #1
0
 public override void Clone(BaseTileDataInstance copy)
 {
     base.Clone(copy);
     if (copy is TileDataInstance)
     {
         this.location = ((TileDataInstance)copy).location;
         this.layer    = ((TileDataInstance)copy).layer;
     }
 }
Пример #2
0
 public virtual void Clone(BaseTileDataInstance copy)
 {
     this.room       = copy.Room;
     this.tileData   = copy.tileData;
     this.properties = new Properties(this);
     this.properties.BaseProperties         = tileData.Properties;
     this.modifiedProperties                = new Properties(this);
     this.modifiedProperties.BaseProperties = tileData.Properties;
     this.properties.SetAll(copy.properties);
 }
Пример #3
0
 public override void Clone(BaseTileDataInstance copy)
 {
     base.Clone(copy);
     if (copy is TileDataInstance) {
         this.location	= ((TileDataInstance) copy).location;
         this.layer		= ((TileDataInstance) copy).layer;
     }
 }
Пример #4
0
 public void Remove(BaseTileDataInstance tile)
 {
     if (tile is TileDataInstance)
         RemoveTile((TileDataInstance) tile);
     else if (tile is EventTileDataInstance)
         RemoveEventTile((EventTileDataInstance) tile);
 }
Пример #5
0
 public void SetSelectionBox(BaseTileDataInstance tile)
 {
     selectionBox = tile.GetBounds();
     selectionBox.Point += tile.Room.Location * tile.Room.Size * GameSettings.TILE_SIZE;
 }
Пример #6
0
 public void RemoveTileFromSelection(BaseTileDataInstance tile)
 {
     selectedTiles.Remove(tile);
 }
Пример #7
0
 //-----------------------------------------------------------------------------
 // Individual Tile Selection
 //-----------------------------------------------------------------------------
 public bool IsTileInSelection(BaseTileDataInstance tile)
 {
     return selectedTiles.Contains(tile);
 }
Пример #8
0
 public void AddTileToSelection(BaseTileDataInstance tile)
 {
     selectedTiles.Add(tile);
     selectedRoom = tile.Room;
 }
 public virtual void Clone(BaseTileDataInstance copy)
 {
     this.room		= copy.Room;
     this.tileData	= copy.tileData;
     this.properties	= new Properties(this);
     this.properties.BaseProperties = tileData.Properties;
     this.modifiedProperties	= new Properties(this);
     this.modifiedProperties.BaseProperties = tileData.Properties;
     this.properties.SetAll(copy.properties);
 }