1using System.Collections.Generic;
3using Microsoft.Xna.Framework;
57 Rectangle value =
default(Rectangle);
71 value.X = Position.X * 16 + x;
72 value.Y = Position.Y * 16 + y;
76 Rectangle
value2 = item.Value;
77 if (((Rectangle)(
ref value2)).Intersects(value))
96 for (
int i = 0; i < 255; i++)
120 public static int Place(
int x,
int y)
123 tETrainingDummy.Position =
new Point16(x, y);
142 return Place(x - 1, y - 2);
145 public static void Kill(
int x,
int y)
157 public static int Find(
int x,
int y)
168 writer.Write((
short)
npc);
173 npc = reader.ReadInt16();
204 return Position.X +
"x " + Position.Y +
"y npc: " +
npc;
Used by vanilla for training dummies.
static Dictionary< int, TileEntity > ByID
static Dictionary< Point16, TileEntity > ByPosition
static object EntityCreationLock
override void WriteExtraData(BinaryWriter writer, bool networkSend)
static int Hook_AfterPlacement(int x, int y, int type=378, int style=0, int direction=1, int alternate=0)
override TileEntity GenerateInstance()
static void FillPlayerHitboxes()
override void ReadExtraData(BinaryReader reader, bool networkSend)
override void NetPlaceEntityAttempt(int x, int y)
static bool playerBoxFilled
static int Place(int x, int y)
override string ToString()
static bool ValidTile(int x, int y)
static void NetPlaceEntity(int x, int y)
static int Find(int x, int y)
override void RegisterTileEntityID(int assignedID)
override bool IsTileValidForEntity(int x, int y)
static void Kill(int x, int y)
static Dictionary< int, Rectangle > playerBox
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
static int netMode
Denotes the current network mode: 0 for single player client, 1 for multiplayer client,...
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
Spawns an NPC into the game world with the given type. This method should not be called on multipla...
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
static void SendTileSquare(int whoAmi, int tileX, int tileY, int xSize, int ySize, TileChangeType changeType=TileChangeType.None)