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.
1
using
System
;
2
using
System.IO
;
3
using
Microsoft.Xna.Framework
;
4
using
Terraria.DataStructures
;
5
6
namespace
Terraria
7
{
8
// Token: 0x0200044E RID: 1102
9
public
class
EquipmentLoadout
:
IFixLoadedData
10
{
11
// Token: 0x0600296B RID: 10603 RVA: 0x0019B64C File Offset: 0x0019984C
12
public
EquipmentLoadout
()
13
{
14
Item
[]
array
= this.
CreateItemArray
(20);
15
this.Armor
=
array
;
16
Item
[]
array2
;
17
this.Dye
=
array2
;
18
}
19
20
// Token: 0x0600296C RID: 10604 RVA: 0x0019B678 File Offset: 0x00199878
21
private
Item
[]
CreateItemArray
(
int
length
)
22
{
23
throw
new
ArrayTypeMismatchException
();
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
;
35
Vector2
position2
= dye.
position
;
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
;
50
Vector2
position2
= dye.
position
;
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 == 0
L
)
62
{
63
}
64
long
entityId2
= player.
dye
.
entityId
;
65
Item
[] dye = this.
Dye
;
66
if
(entityId2 == 0
L
)
67
{
68
}
69
bool
[] hideVisibleAccessory = player.
hideVisibleAccessory
;
70
bool
[] hide = this.
Hide
;
71
if
(entityId2 == 0
L
)
72
{
73
}
74
}
75
76
// Token: 0x06002970 RID: 10608 RVA: 0x0019B7A8 File Offset: 0x001999A8
77
public
void
TryDroppingItems
(
Player
player,
IEntitySource
source
)
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
;
85
Vector2
position2
= dye.
position
;
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
}
102
Player
.
FixLoadedData_EliminiateDuplicateAccessories
(
armor2
);
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.IO.BinaryReader
Definition
BinaryReader.cs:10
System.IO.BinaryWriter
Definition
BinaryWriter.cs:15
Terraria.Entity.entityId
long entityId
Definition
Entity.cs:457
Terraria.Entity.position
Vector2 position
Definition
Entity.cs:460
Terraria.EquipmentLoadout.EquipmentLoadout
EquipmentLoadout()
Definition
EquipmentLoadout.cs:12
Terraria.EquipmentLoadout.TryDroppingItems
void TryDroppingItems(Player player, IEntitySource source)
Definition
EquipmentLoadout.cs:77
Terraria.EquipmentLoadout.Swap
void Swap(Player player)
Definition
EquipmentLoadout.cs:57
Terraria.EquipmentLoadout.CreateItemArray
Item[] CreateItemArray(int length)
Definition
EquipmentLoadout.cs:21
Terraria.EquipmentLoadout.Deserialize
void Deserialize(BinaryReader reader, int gameVersion)
Definition
EquipmentLoadout.cs:42
Terraria.EquipmentLoadout.FixLoadedData
void FixLoadedData()
Definition
EquipmentLoadout.cs:90
Terraria.EquipmentLoadout.Armor
Item[] Armor
Definition
EquipmentLoadout.cs:106
Terraria.EquipmentLoadout.Serialize
void Serialize(BinaryWriter writer)
Definition
EquipmentLoadout.cs:27
Terraria.EquipmentLoadout.Hide
bool[] Hide
Definition
EquipmentLoadout.cs:112
Terraria.EquipmentLoadout.Dye
Item[] Dye
Definition
EquipmentLoadout.cs:109
Terraria.EquipmentLoadout
Definition
EquipmentLoadout.cs:10
Terraria.Item
Definition
Item.cs:21
Terraria.Player.FixLoadedData_EliminiateDuplicateAccessories
static void FixLoadedData_EliminiateDuplicateAccessories(Item[] armorArray)
Definition
Player.cs:19266
Terraria.Player.armor
Item[] armor
Definition
Player.cs:21128
Terraria.Player.hideVisibleAccessory
bool[] hideVisibleAccessory
Definition
Player.cs:21431
Terraria.Player.dye
Item[] dye
Definition
Player.cs:21131
Terraria.Player
Definition
Player.cs:33
Terraria.DataStructures.IEntitySource
Definition
IEntitySource.cs:7
Terraria.DataStructures.IFixLoadedData
Definition
IFixLoadedData.cs:7
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.IO
Definition
__Error.cs:4
System.ExceptionArgument.length
@ length
System.ExceptionArgument.source
@ source
System.ExceptionArgument.array
@ array
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Terraria
Definition
Achievement.cs:10
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
Terraria
EquipmentLoadout.cs
Generated by
1.10.0