terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ WritePlayerData()

void SaveSynchronisationOperation_SendFileList.WritePlayerData ( BinaryWriter writer,
Player player )
inlineprivate

Definition at line 43 of file SaveSynchronisationOperation_SendFileList.cs.

44 {
45 string name = player.name;
46 byte difficulty = player.difficulty;
47 int hair = player.hair;
48 byte hairDye = player.hairDye;
50 bool[] hideVisibleAccessory = player.hideVisibleAccessory;
53 BitsByte hideMisc = player.hideMisc;
54 int skinVariant = player.skinVariant;
55 int statLife = player.statLife;
56 int statLifeMax = player.statLifeMax;
57 int statMana = player.statMana;
58 int statManaMax = player.statManaMax;
59 bool extraAccessory = player.extraAccessory;
60 bool unlockedBiomeTorches = player.unlockedBiomeTorches;
62 bool downedDD2EventAnyDifficulty = player.downedDD2EventAnyDifficulty;
63 int taxMoney = player.taxMoney;
64 byte r = player.hairColor.R;
65 byte g = player.hairColor.G;
66 byte b = player.hairColor.B;
67 byte r2 = player.skinColor.R;
68 byte g2 = player.skinColor.G;
69 byte b2 = player.skinColor.B;
70 byte r3 = player.eyeColor.R;
71 byte g3 = player.eyeColor.G;
72 byte b3 = player.eyeColor.B;
73 byte r4 = player.shirtColor.R;
74 byte g4 = player.shirtColor.G;
75 byte b4 = player.shirtColor.B;
76 byte r5 = player.underShirtColor.R;
77 byte g5 = player.underShirtColor.G;
78 byte b5 = player.underShirtColor.B;
79 byte r6 = player.pantsColor.R;
80 byte g6 = player.pantsColor.G;
81 byte b6 = player.pantsColor.B;
82 byte r7 = player.shoeColor.R;
83 byte g7 = player.shoeColor.G;
84 byte b7 = player.shoeColor.B;
85 Item[] armor = player.armor;
86 long entityId = armor.entityId;
87 int netID = armor.netID;
88 byte prefix = player.armor.prefix;
89 Item[] armor2 = player.armor;
90 Item[] dye = player.dye;
91 long entityId2 = dye.entityId;
92 int netID2 = dye.netID;
93 byte prefix2 = player.dye.prefix;
94 Item[] dye2 = player.dye;
95 int netID3 = player.inventory.netID;
96 int stack = player.inventory.stack;
97 byte prefix3 = player.inventory.prefix;
98 bool favorited = player.inventory.favorited;
99 Item[] miscEquips = player.miscEquips;
100 long entityId3 = miscEquips.entityId;
101 int netID4 = miscEquips.netID;
102 byte prefix4 = player.miscEquips.prefix;
103 int netID5 = player.miscDyes.netID;
104 byte prefix5 = player.miscDyes.prefix;
105 Item[] miscEquips2 = player.miscEquips;
106 int netID6 = player.bank.item.netID;
107 int stack2 = player.bank.item.stack;
108 byte prefix6 = player.bank.item.prefix;
109 int netID7 = player.bank2.item.netID;
110 int stack3 = player.bank2.item.stack;
111 byte prefix7 = player.bank2.item.prefix;
112 int netID8 = player.bank3.item.netID;
113 int stack4 = player.bank3.item.stack;
114 byte prefix8 = player.bank3.item.prefix;
115 int netID9 = player.bank4.item.netID;
116 int stack5 = player.bank4.item.stack;
117 byte prefix9 = player.bank4.item.prefix;
118 BitsByte voidVaultInfo = player.voidVaultInfo;
119 bool[] hideInfo = player.hideInfo;
120 bool[] hideInfo2 = player.hideInfo;
121 }
class f__AnonymousType0<< Count > j__TPar
Item[] item
Definition Chest.cs:1344
bool favorited
Definition Item.cs:2063
byte prefix
Definition Item.cs:2397
Microsoft.Xna.Framework.Graphics.Color pantsColor
Definition Player.cs:22628
Microsoft.Xna.Framework.Graphics.Color shoeColor
Definition Player.cs:22631
bool downedDD2EventAnyDifficulty
Definition Player.cs:21758
bool unlockedBiomeTorches
Definition Player.cs:21929
BitsByte hideMisc
Definition Player.cs:21434
Item[] miscEquips
Definition Player.cs:21134
bool[] hideInfo
Definition Player.cs:20297
Microsoft.Xna.Framework.Graphics.Color hairColor
Definition Player.cs:22613
bool UsingBiomeTorches
Definition Player.cs:1376
Microsoft.Xna.Framework.Graphics.Color skinColor
Definition Player.cs:22616
bool extraAccessory
Definition Player.cs:20375
bool[] hideVisibleAccessory
Definition Player.cs:21431
Item[] miscDyes
Definition Player.cs:21137
BitsByte voidVaultInfo
Definition Player.cs:21284
Microsoft.Xna.Framework.Graphics.Color eyeColor
Definition Player.cs:22619
Item[] inventory
Definition Player.cs:21263
Microsoft.Xna.Framework.Graphics.Color shirtColor
Definition Player.cs:22622
Microsoft.Xna.Framework.Graphics.Color underShirtColor
Definition Player.cs:22625

References Terraria.Player.armor, Terraria.Player.bank, Terraria.Player.bank2, Terraria.Player.bank3, Terraria.Player.bank4, Terraria.Player.difficulty, Terraria.Player.downedDD2EventAnyDifficulty, Terraria.Player.dye, Terraria.Entity.entityId, Terraria.Player.extraAccessory, Terraria.Player.eyeColor, Terraria.Item.favorited, Terraria.Player.hair, Terraria.Player.hairColor, Terraria.Player.hairDye, Terraria.Player.hideInfo, Terraria.Player.hideMisc, Terraria.Player.hideVisibleAccessory, Terraria.Player.inventory, Terraria.Chest.item, j__TPar, Terraria.Player.miscDyes, Terraria.Player.miscEquips, System.name, Terraria.Player.name, Terraria.Item.netID, Terraria.Player.pantsColor, Terraria.Item.prefix, Terraria.Player.shirtColor, Terraria.Player.shoeColor, Terraria.Player.skinColor, Terraria.Player.skinVariant, System.stack, Terraria.Item.stack, Terraria.Player.statLife, Terraria.Player.statLifeMax, Terraria.Player.statMana, Terraria.Player.statManaMax, Terraria.Player.taxMoney, Terraria.Player.underShirtColor, Terraria.Player.unlockedBiomeTorches, Terraria.Player.UsingBiomeTorches, and Terraria.Player.voidVaultInfo.