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
EquipmentLoadout.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5
6namespace Terraria
7{
8 // Token: 0x0200044E RID: 1102
10 {
11 // Token: 0x0600296B RID: 10603 RVA: 0x0019B64C File Offset: 0x0019984C
13 {
14 Item[] array = this.CreateItemArray(20);
16 Item[] array2;
18 }
19
20 // Token: 0x0600296C RID: 10604 RVA: 0x0019B678 File Offset: 0x00199878
22 {
24 }
25
26 // Token: 0x0600296D RID: 10605 RVA: 0x0019B68C File Offset: 0x0019988C
27 public void Serialize(BinaryWriter writer)
28 {
29 Item[] armor = this.Armor;
30 long entityId = armor.entityId;
31 Vector2 position = armor.position;
32 Item[] armor2 = this.Armor;
33 Item[] dye = this.Dye;
34 long entityId2 = dye.entityId;
36 Item[] dye2 = this.Dye;
37 bool[] hide = this.Hide;
38 bool[] hide2 = this.Hide;
39 }
40
41 // Token: 0x0600296E RID: 10606 RVA: 0x0019B6F0 File Offset: 0x001998F0
42 public void Deserialize(BinaryReader reader, int gameVersion)
43 {
44 Item[] armor = this.Armor;
45 long entityId = armor.entityId;
46 Vector2 position = armor.position;
47 Item[] armor2 = this.Armor;
48 Item[] dye = this.Dye;
49 long entityId2 = dye.entityId;
51 Item[] dye2 = this.Dye;
52 bool[] hide = this.Hide;
53 bool[] hide2 = this.Hide;
54 }
55
56 // Token: 0x0600296F RID: 10607 RVA: 0x0019B754 File Offset: 0x00199954
57 public void Swap(Player player)
58 {
59 long entityId = player.armor.entityId;
60 Item[] armor = this.Armor;
61 if (entityId == 0L)
62 {
63 }
64 long entityId2 = player.dye.entityId;
65 Item[] dye = this.Dye;
66 if (entityId2 == 0L)
67 {
68 }
69 bool[] hideVisibleAccessory = player.hideVisibleAccessory;
70 bool[] hide = this.Hide;
71 if (entityId2 == 0L)
72 {
73 }
74 }
75
76 // Token: 0x06002970 RID: 10608 RVA: 0x0019B7A8 File Offset: 0x001999A8
78 {
79 Item[] armor = this.Armor;
80 long entityId = armor.entityId;
81 Vector2 position = armor.position;
82 Item[] armor2 = this.Armor;
83 Item[] dye = this.Dye;
84 long entityId2 = dye.entityId;
86 Item[] dye2 = this.Dye;
87 }
88
89 // Token: 0x06002971 RID: 10609 RVA: 0x0019B7F8 File Offset: 0x001999F8
90 public void FixLoadedData()
91 {
92 long entityId = this.Armor.entityId;
93 Item[] armor = this.Armor;
94 Item[] dye = this.Dye;
95 long entityId2 = dye.entityId;
96 Vector2 position = dye.position;
97 Item[] dye2 = this.Dye;
98 Item[] armor2 = this.Armor;
99 if (dye2 == null)
100 {
101 }
103 }
104
105 // Token: 0x04003690 RID: 13968
106 public Item[] Armor;
107
108 // Token: 0x04003691 RID: 13969
109 public Item[] Dye;
110
111 // Token: 0x04003692 RID: 13970
112 public bool[] Hide;
113 }
114}
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
void TryDroppingItems(Player player, IEntitySource source)
void Swap(Player player)
Item[] CreateItemArray(int length)
void Deserialize(BinaryReader reader, int gameVersion)
void Serialize(BinaryWriter writer)
static void FixLoadedData_EliminiateDuplicateAccessories(Item[] armorArray)
Definition Player.cs:19266
bool[] hideVisibleAccessory
Definition Player.cs:21431