Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PlaceWire2()

static bool Terraria.WorldGen.PlaceWire2 ( int i,
int j )
inlinestatic

Definition at line 49079 of file WorldGen.cs.

49080 {
49081 if (!Main.tile[i, j].wire2())
49082 {
49083 SoundEngine.PlaySound(0, i * 16, j * 16);
49084 Main.tile[i, j].wire2(wire2: true);
49085 return true;
49086 }
49087 return false;
49088 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.tile.

Referenced by Terraria.MessageBuffer.GetData(), Terraria.Player.ItemCheck_UseWiringTools(), and Terraria.Wiring.MassWireOperationStep().