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

◆ EnterWorld()

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

Definition at line 324 of file Player.cs.

325 {
326 Logging.Terraria.InfoFormat("Entering world with player: {0}, IsCloud={1}, Width: {2}, Height: {3}, Evil: {4}, GameMode: {5}", new object[6]
327 {
328 Main.ActivePlayerFileData.Name,
329 Main.ActivePlayerFileData.IsCloudSave,
330 Main.maxTilesX,
331 Main.maxTilesY,
332 WorldGen.crimson.ToInt(),
333 Main.GameMode
334 });
336 if (Hooks.OnEnterWorld != null)
337 {
338 Hooks.OnEnterWorld(Main.player[playerIndex]);
339 }
341 if (playerIndex == Main.myPlayer)
342 {
343 Main.ToggleGameplayUpdates(state: true);
345 }
346 }
static void OnEnterWorld(int playerIndex)
This is where all ModPlayer hooks are gathered and called.

References Terraria.Main.ActivePlayerFileData, Terraria.Social.Steam.SteamedWraps.BeginPlaytimeTracking(), Terraria.WorldGen.crimson, Terraria.Main.GameMode, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.myPlayer, Terraria.ModLoader.PlayerLoader.OnEnterWorld(), Terraria.Player.Hooks.OnEnterWorld, Terraria.Main.player, Terraria.ModLoader.UI.Interface.ResetData(), Terraria.ModLoader.Logging.Terraria, and Terraria.Main.ToggleGameplayUpdates().

Referenced by Terraria.Player.Spawn().

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