Place() публичный статический Метод

public static Place ( int x, int y ) : int
x int
y int
Результат int
Пример #1
0
 public static int Hook_AfterPlacement(int x, int y, int type = 21, int style = 0, int direction = 1)
 {
     if (Main.netMode != 1)
         return TargetDummy.Place(x - 1, y - 2);
     NetMessage.SendTileSquare(Main.myPlayer, x - 1, y - 1, 3);
     NetMessage.SendData(87, -1, -1, "", x - 1, (float)(y - 2), 0.0f, 0.0f, 0, 0, 0);
     return -1;
 }
Пример #2
0
 public static int Hook_AfterPlacement(int x, int y, int type = 21, int style = 0, int direction = 1)
 {
     if (Main.netMode != 1)
     {
         return(TargetDummy.Place(x - 1, y - 2));
     }
     NetMessage.SendTileSquare(Main.myPlayer, x - 1, y - 1, 3);
     NetMessage.SendData((int)PacketTypes.PlaceTileEntity, -1, -1, "", x - 1, (float)(y - 2), 0f, 0f, 0, 0, 0);
     return(-1);
 }