コード例 #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
ファイル: Room.cs プロジェクト: trigger-death/ZeldaOracle
 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;
 }
コード例 #9
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);
 }