本文整理汇总了C#中ISandbox.FallingBlockProjectile方法的典型用法代码示例。如果您正苦于以下问题:C# ISandbox.FallingBlockProjectile方法的具体用法?C# ISandbox.FallingBlockProjectile怎么用?C# ISandbox.FallingBlockProjectile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISandbox
的用法示例。
在下文中一共展示了ISandbox.FallingBlockProjectile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TileFrame
//.........这里部分代码省略.........
}
if (num29 != num)
{
bool flag4 = false;
if (num29 == -1)
{
flag4 = true;
}
if (num == 52 && num29 != 2)
{
flag4 = true;
}
if (num == 62 && num29 != 60)
{
flag4 = true;
}
if (num == 115 && num29 != 109)
{
flag4 = true;
}
if (flag4)
{
KillTile(TileRefs, sandbox, i, j);
}
}
}
if (!noTileActions && (num == 53 || num == 112 || num == 116 || num == 123))
{
if (!TileRefs(i, j + 1).Active)
{
bool flag6 = true;
if (TileRefs(i, j - 1).Active && TileRefs(i, j - 1).Type == 21)
{
flag6 = false;
}
if (flag6)
{
int type2 = 31;
if (num == 59)
{
type2 = 39;
}
if (num == 57)
{
type2 = 40;
}
if (num == 112)
{
type2 = 56;
}
if (num == 116)
{
type2 = 67;
}
if (num == 123)
{
type2 = 71;
}
TileRefs(i, j).SetActive(false);
/*int num39 = Projectile.NewProjectile((float)(i * 16 + 8), (float)(j * 16 + 8), 0f, 2.5f, type2, 10, 0f, Main.myPlayer);
Main.projectile[num39].Velocity.Y = 0.5f;
Main.projectile[num39].Position.Y += 2f;
Main.projectile[num39].netUpdate = true;
NetMessage.SendTileSquare(-1, i, j, 1);*/
/*lock(WorldModify.playerEditLock)
Terraria_Server.Messages.TileBreakMessage.staticEditor.Sandbox.FallingBlockProjectile(i, j, type2);*/
lock (WorldModify.playerEditLock)
sandbox.FallingBlockProjectile(i, j, type2);
SquareTileFrame(TileRefs, sandbox, i, j, true);
}
}
}
if (rectangle.X != frameX && rectangle.Y != frameY && frameX >= 0 && frameY >= 0)
{
bool flag7 = mergeUp;
bool flag8 = mergeDown;
bool flag9 = mergeLeft;
bool flag10 = mergeRight;
TileFrame(TileRefs, sandbox, i - 1, j, false, false);
TileFrame(TileRefs, sandbox, i + 1, j, false, false);
TileFrame(TileRefs, sandbox, i, j - 1, false, false);
TileFrame(TileRefs, sandbox, i, j + 1, false, false);
mergeUp = flag7;
mergeDown = flag8;
mergeLeft = flag9;
mergeRight = flag10;
}
}
}
}
}
}
catch
{ }
}