TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Shellphone_Spawn()

void Terraria.Player.Shellphone_Spawn ( )
inline

Definition at line 56900 of file Player.cs.

56901 {
56902 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
56903 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
56904 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
56905 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
56906 //IL_0060: Unknown result type (might be due to invalid IL or missing references)
56907 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
56908 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
56909 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
56910 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
56911 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
56912 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
56913 int floorX = Main.spawnTileX;
56914 int floorY = Main.spawnTileY;
56916 if (Main.netMode != 1 && !Spawn_IsAreaAValidWorldSpawn(floorX, floorY))
56917 {
56919 }
56920 Vector2 newPos = Utils.ToWorldCoordinates(new Point(floorX, floorY), 8f, 0f) - new Vector2((float)(width / 2), (float)height);
56921 Teleport(newPos, 11);
56922 velocity = Vector2.Zero;
56923 if (Main.netMode == 2)
56924 {
56925 RemoteClient.CheckSection(whoAmI, position);
56926 NetMessage.SendData(65, -1, -1, null, 0, whoAmI, newPos.X, newPos.Y, 11);
56927 }
56928 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static void Spawn_ForceClearArea(int floorX, int floorY)
Definition Player.cs:36767
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
Definition Player.cs:36320
bool Spawn_IsAreaAValidWorldSpawn(int floorX, int floorY)
Definition Player.cs:36790
bool Spawn_GetPositionAtWorldSpawn(ref int floorX, ref int floorY)
Definition Player.cs:36687

References Terraria.RemoteClient.CheckSection(), Terraria.Entity.height, Terraria.Main.netMode, Terraria.Entity.position, Terraria.NetMessage.SendData(), Terraria.Player.Spawn_ForceClearArea(), Terraria.Player.Spawn_GetPositionAtWorldSpawn(), Terraria.Player.Spawn_IsAreaAValidWorldSpawn(), Terraria.Main.spawnTileX, Terraria.Main.spawnTileY, Terraria.Player.Teleport(), Terraria.Utils.ToWorldCoordinates(), Terraria.Entity.velocity, Terraria.Entity.whoAmI, and Terraria.Entity.width.

Referenced by Terraria.Player.ItemCheck_Inner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: