Beispiel #1
0
 public static int Hook_AfterPlacement(
     int x,
     int y,
     int type      = 471,
     int style     = 0,
     int direction = 1,
     int alternate = 0)
 {
     if (Main.netMode != 1)
     {
         return(TEWeaponsRack.Place(x, y));
     }
     NetMessage.SendTileSquare(Main.myPlayer, x, y, 5, TileChangeType.None);
     NetMessage.SendData(87, -1, -1, (NetworkText)null, x, (float)y, (float)TEWeaponsRack._myEntityID, 0.0f, 0, 0, 0);
     return(-1);
 }
Beispiel #2
0
 public static void NetPlaceEntity(int x, int y)
 {
     NetMessage.SendData(86, -1, -1, (NetworkText)null, TEWeaponsRack.Place(x, y), (float)x, (float)y, 0.0f, 0, 0, 0);
 }