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

◆ EnterWorld()

static void Terraria.Player.Hooks.EnterWorld ( int playerIndex)
inlinestatic

Definition at line 313 of file Player.cs.

314 {
315 if (Hooks.OnEnterWorld != null)
316 {
317 Hooks.OnEnterWorld(Main.player[playerIndex]);
318 }
319 if (playerIndex == Main.myPlayer)
320 {
321 Main.ToggleGameplayUpdates(state: true);
322 }
323 }

References Terraria.Main.myPlayer, Terraria.Player.Hooks.OnEnterWorld, Terraria.Main.player, System.state, and Terraria.Main.ToggleGameplayUpdates().

Referenced by Terraria.Player.Spawn().