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
TileDrawSorter.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
4
namespace
Terraria.DataStructures
5
{
6
// Token: 0x0200067A RID: 1658
7
public
class
TileDrawSorter
8
{
9
// Token: 0x06003742 RID: 14146 RVA: 0x00221598 File Offset: 0x0021F798
10
public
TileDrawSorter
()
11
{
12
}
13
14
// Token: 0x06003743 RID: 14147 RVA: 0x002215AC File Offset: 0x0021F7AC
15
public
void
reset
()
16
{
17
}
18
19
// Token: 0x06003744 RID: 14148 RVA: 0x002215BC File Offset: 0x0021F7BC
20
public
void
Cache
(
int
x,
int
y,
int
type)
21
{
22
TileDrawSorter
.
TileTexPoint
[]
array
= this.
tilesToDraw
;
23
int
holderLength
= this.
_holderLength
;
24
this.
IncreaseArraySize
();
25
}
26
27
// Token: 0x06003745 RID: 14149 RVA: 0x002215E0 File Offset: 0x0021F7E0
28
private
void
IncreaseArraySize
()
29
{
30
int
holderLength
= this.
_holderLength
;
31
}
32
33
// Token: 0x06003746 RID: 14150 RVA: 0x002215F4 File Offset: 0x0021F7F4
34
public
void
Sort
()
35
{
36
TileDrawSorter
.
TileTexPoint
[]
array
= this.
tilesToDraw
;
37
int
currentCacheIndex
= this.
_currentCacheIndex
;
38
TileDrawSorter.CustomComparer
tileComparer
= this.
_tileComparer
;
39
}
40
41
// Token: 0x06003747 RID: 14151 RVA: 0x00221618 File Offset: 0x0021F818
42
public
int
GetAmountToDraw
()
43
{
44
return
this.
_currentCacheIndex
;
45
}
46
47
// Token: 0x0400786D RID: 30829
48
public
TileDrawSorter
.
TileTexPoint
[]
tilesToDraw
;
49
50
// Token: 0x0400786E RID: 30830
51
private
int
_holderLength
;
52
53
// Token: 0x0400786F RID: 30831
54
private
int
_currentCacheIndex
;
55
56
// Token: 0x04007870 RID: 30832
57
private
TileDrawSorter.CustomComparer
_tileComparer
;
58
59
// Token: 0x0200067B RID: 1659
60
public
struct
TileTexPoint
61
{
62
// Token: 0x06003748 RID: 14152 RVA: 0x0022162C File Offset: 0x0021F82C
63
public
override
string
ToString
()
64
{
65
int
y = this.
Y
;
66
int
tileType = this.
TileType
;
67
string
text
;
68
return
text
;
69
}
70
71
// Token: 0x04007871 RID: 30833
72
public
int
X
;
73
74
// Token: 0x04007872 RID: 30834
75
public
int
Y
;
76
77
// Token: 0x04007873 RID: 30835
78
public
int
TileType
;
79
}
80
81
// Token: 0x0200067C RID: 1660
82
public
class
CustomComparer
:
Comparer
<TileDrawSorter.TileTexPoint>
83
{
84
// Token: 0x06003749 RID: 14153 RVA: 0x00221648 File Offset: 0x0021F848
85
public
override
int
Compare
(
TileDrawSorter
.
TileTexPoint
x,
TileDrawSorter
.
TileTexPoint
y)
86
{
87
int
num;
88
return
num;
89
}
90
91
// Token: 0x0600374A RID: 14154 RVA: 0x00221658 File Offset: 0x0021F858
92
public
CustomComparer
()
93
{
94
}
95
}
96
}
97
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Collections.Generic.Comparer
Definition
Comparer.cs:11
Terraria.DataStructures.TileDrawSorter.CustomComparer.Compare
override int Compare(TileDrawSorter.TileTexPoint x, TileDrawSorter.TileTexPoint y)
Definition
TileDrawSorter.cs:85
Terraria.DataStructures.TileDrawSorter.CustomComparer.CustomComparer
CustomComparer()
Definition
TileDrawSorter.cs:92
Terraria.DataStructures.TileDrawSorter.CustomComparer
Definition
TileDrawSorter.cs:83
Terraria.DataStructures.TileDrawSorter.reset
void reset()
Definition
TileDrawSorter.cs:15
Terraria.DataStructures.TileDrawSorter.IncreaseArraySize
void IncreaseArraySize()
Definition
TileDrawSorter.cs:28
Terraria.DataStructures.TileDrawSorter._currentCacheIndex
int _currentCacheIndex
Definition
TileDrawSorter.cs:54
Terraria.DataStructures.TileDrawSorter.GetAmountToDraw
int GetAmountToDraw()
Definition
TileDrawSorter.cs:42
Terraria.DataStructures.TileDrawSorter.Cache
void Cache(int x, int y, int type)
Definition
TileDrawSorter.cs:20
Terraria.DataStructures.TileDrawSorter._holderLength
int _holderLength
Definition
TileDrawSorter.cs:51
Terraria.DataStructures.TileDrawSorter.Sort
void Sort()
Definition
TileDrawSorter.cs:34
Terraria.DataStructures.TileDrawSorter.TileDrawSorter
TileDrawSorter()
Definition
TileDrawSorter.cs:10
Terraria.DataStructures.TileDrawSorter._tileComparer
TileDrawSorter.CustomComparer _tileComparer
Definition
TileDrawSorter.cs:57
Terraria.DataStructures.TileDrawSorter.tilesToDraw
TileDrawSorter.TileTexPoint[] tilesToDraw
Definition
TileDrawSorter.cs:48
Terraria.DataStructures.TileDrawSorter
Definition
TileDrawSorter.cs:8
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.ExceptionArgument.text
@ text
System.ExceptionArgument.array
@ array
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Terraria.DataStructures.TileDrawSorter.TileTexPoint.X
int X
Definition
TileDrawSorter.cs:72
Terraria.DataStructures.TileDrawSorter.TileTexPoint.ToString
override string ToString()
Definition
TileDrawSorter.cs:63
Terraria.DataStructures.TileDrawSorter.TileTexPoint.TileType
int TileType
Definition
TileDrawSorter.cs:78
Terraria.DataStructures.TileDrawSorter.TileTexPoint.Y
int Y
Definition
TileDrawSorter.cs:75
Terraria.DataStructures.TileDrawSorter.TileTexPoint
Definition
TileDrawSorter.cs:61
source
Terraria
DataStructures
TileDrawSorter.cs
Generated by
1.10.0