Esempio n. 1
0
 public static void NewTemporaryAnimation(int type, ushort tileType, int x, int y)
 {
     Point16 point16 = new Point16(x, y);
     if (x < 0 || x >= Main.maxTilesX || (y < 0 || y >= Main.maxTilesY))
         return;
     Animation animation = new Animation();
     animation.SetDefaults(type);
     animation._tileType = tileType;
     animation._coordinates = point16;
     animation._temporary = true;
     _awaitingAddition.Add(animation);
     if (Main.netMode != 2)
         return;
     NetMessage.SendTemporaryAnimation(-1, type, tileType, x, y);
 }