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

◆ SetPlayerDataToOutOfClassFields()

void Terraria.Player.SetPlayerDataToOutOfClassFields ( )
inline

Definition at line 55637 of file Player.cs.

55638 {
55639 Item mouseItem = new Item();
55640 if (_temporaryItemSlots[0] != null)
55641 {
55642 mouseItem = _temporaryItemSlots[0].Clone();
55643 }
55644 Main.mouseItem = mouseItem;
55645 mouseItem = new Item();
55646 if (_temporaryItemSlots[1] != null)
55647 {
55648 mouseItem = _temporaryItemSlots[1].Clone();
55649 }
55650 Main.CreativeMenu.SetItembyIndex(mouseItem, 0);
55651 mouseItem = new Item();
55652 if (_temporaryItemSlots[2] != null)
55653 {
55654 mouseItem = _temporaryItemSlots[2].Clone();
55655 }
55656 Main.guideItem = mouseItem;
55657 mouseItem = new Item();
55658 if (_temporaryItemSlots[3] != null)
55659 {
55660 mouseItem = _temporaryItemSlots[3].Clone();
55661 }
55662 Main.reforgeItem = mouseItem;
55663 CreativePowerManager.Instance.ApplyLoadedDataToPlayer(this);
55664 }
Item Clone()
Definition Item.cs:51739
Item[] _temporaryItemSlots
Definition Player.cs:3302

References Terraria.Player._temporaryItemSlots, Terraria.Item.Clone(), Terraria.Main.CreativeMenu, and Terraria.GameContent.Creative.CreativePowerManager.Instance.

Referenced by Terraria.Player.Spawn().

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