Place() public static method

public static Place ( int x, int y ) : int
x int
y int
return int
Example #1
0
 public static void NetPlaceEntity(int x, int y, int type)
 {
     if (type != 0 || !TETrainingDummy.ValidTile(x, y))
     {
         return;
     }
     TETrainingDummy.Place(x, y);
 }
 public static int Hook_AfterPlacement(int x, int y, int type = 378, int style = 0, int direction = 1)
 {
     if (Main.netMode != 1)
         return TETrainingDummy.Place(x - 1, y - 2);
     NetMessage.SendTileSquare(Main.myPlayer, x - 1, y - 1, 3, TileChangeType.None);
     NetMessage.SendData(87, -1, -1, (NetworkText) null, x - 1, (float) (y - 2), 0.0f, 0.0f, 0, 0, 0);
     return -1;
 }
 public static int Hook_AfterPlacement(int x, int y, int type = 21, int style = 0, int direction = 1)
 {
     if (Main.netMode != 1)
     {
         return(TETrainingDummy.Place(x - 1, y - 2));
     }
     NetMessage.SendTileSquare(Main.myPlayer, x - 1, y - 1, 3);
     NetMessage.SendData(87, -1, -1, "", x - 1, (float)(y - 2), 0f, 0f, 0, 0, 0);
     return(-1);
 }
Example #4
0
 public static void NetPlaceEntity(int x, int y)
 {
     TETrainingDummy.Place(x, y);
 }