コード例 #1
0
public bool HasSameSlope(VanillaTile tile)
{
    return (this.sTileHeader & 29696) == (tile.sTileHeader & 29696);
}
コード例 #2
0
public void CopyFrom(VanillaTile from)
{
    this.type = from.type;
    this.wall = from.wall;
    this.liquid = from.liquid;
    this.sTileHeader = from.sTileHeader;
    this.bTileHeader = from.bTileHeader;
    this.bTileHeader2 = from.bTileHeader2;
    this.bTileHeader3 = from.bTileHeader3;
    this.frameX = from.frameX;
    this.frameY = from.frameY;
}
コード例 #3
0
public bool isTheSameAs(VanillaTile compTile)
{
    if (compTile == null)
    {
        return false;
    }
    if (this.sTileHeader != compTile.sTileHeader)
    {
        return false;
    }
    if (this.active())
    {
        if (this.type != compTile.type)
        {
            return false;
        }
    


#if Full_API
        if (Terraria.Main.tileFrameImportant[(int)this.type] && (this.frameX != compTile.frameX || this.frameY != compTile.frameY))
        {
            return false;
        }
    #endif
    }
    if (this.wall != compTile.wall || this.liquid != compTile.liquid)
    {
        return false;
    }
    if (compTile.liquid == 0)
    {
        if (this.wallColor() != compTile.wallColor())
        {
            return false;
        }
    }
    else if (this.bTileHeader != compTile.bTileHeader)
    {
        return false;
    }
    return true;
}
コード例 #4
0
public VanillaTile(VanillaTile copy)
{
    if (copy == null)
    {
        this.type = 0;
        this.wall = 0;
        this.liquid = 0;
        this.sTileHeader = 0;
        this.bTileHeader = 0;
        this.bTileHeader2 = 0;
        this.bTileHeader3 = 0;
        this.frameX = 0;
        this.frameY = 0;
        return;
    }
    this.type = copy.type;
    this.wall = copy.wall;
    this.liquid = copy.liquid;
    this.sTileHeader = copy.sTileHeader;
    this.bTileHeader = copy.bTileHeader;
    this.bTileHeader2 = copy.bTileHeader2;
    this.bTileHeader3 = copy.bTileHeader3;
    this.frameX = copy.frameX;
    this.frameY = copy.frameY;
}