本文整理匯總了C#中Terraria.Tile.honey方法的典型用法代碼示例。如果您正苦於以下問題:C# Tile.honey方法的具體用法?C# Tile.honey怎麽用?C# Tile.honey使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Terraria.Tile
的用法示例。
在下文中一共展示了Tile.honey方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: isTheSameAs
public bool isTheSameAs(Tile compTile)
{
if (compTile == null)
{
return false;
}
if (this.active() != compTile.active())
{
return false;
}
if (this.active())
{
if (this.type != compTile.type)
{
return false;
}
if (Main.tileFrameImportant[(int)this.type])
{
if (this.frameX != compTile.frameX)
{
return false;
}
if (this.frameY != compTile.frameY)
{
return false;
}
}
}
if (this.wall != compTile.wall)
{
return false;
}
if (this.liquid != compTile.liquid)
{
return false;
}
if (this.liquid > 0)
{
if (this.lava() != compTile.lava())
{
return false;
}
if (this.honey() != compTile.honey())
{
return false;
}
}
return this.wire() == compTile.wire() && this.wire2() == compTile.wire2() && this.wire3() == compTile.wire3() && this.halfBrick() == compTile.halfBrick() && this.actuator() == compTile.actuator() && this.inActive() == compTile.inActive() && this.wallColor() == compTile.wallColor() && this.color() == compTile.color() && this.slope() == compTile.slope();
}
示例2: validateWorld
//.........這裏部分代碼省略.........
{
tile.frameY = 0;
}
}
}
else
{
tile.frameX = -1;
tile.frameY = -1;
}
if (num >= 48 && binaryReader.ReadBoolean())
{
tile.color(binaryReader.ReadByte());
}
}
if (num <= 25)
{
binaryReader.ReadBoolean();
}
if (binaryReader.ReadBoolean())
{
tile.wall = binaryReader.ReadByte();
if (num >= 48 && binaryReader.ReadBoolean())
{
tile.wallColor(binaryReader.ReadByte());
}
}
if (binaryReader.ReadBoolean())
{
tile.liquid = binaryReader.ReadByte();
tile.lava(binaryReader.ReadBoolean());
if (num >= 51)
{
tile.honey(binaryReader.ReadBoolean());
}
}
if (num >= 33)
{
tile.wire(binaryReader.ReadBoolean());
}
if (num >= 43)
{
tile.wire2(binaryReader.ReadBoolean());
tile.wire3(binaryReader.ReadBoolean());
}
if (num >= 41)
{
tile.halfBrick(binaryReader.ReadBoolean());
if (!Main.tileSolid[(int)tile.type])
{
tile.halfBrick(false);
}
if (num >= 49)
{
tile.slope(binaryReader.ReadByte());
if (!Main.tileSolid[(int)tile.type])
{
tile.slope(0);
}
}
}
if (num >= 42)
{
tile.actuator(binaryReader.ReadBoolean());
tile.inActive(binaryReader.ReadBoolean());
}