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
PingMapLayer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
ReLogic.Utilities
;
4
5
namespace
Terraria.Map
6
{
7
// Token: 0x020006BD RID: 1725
8
public
class
PingMapLayer
:
IMapLayer
9
{
10
// Token: 0x06003922 RID: 14626 RVA: 0x0022C838 File Offset: 0x0022AA38
11
public
void
Draw
(
MapOverlayDrawContext
context,
string
text
)
12
{
13
DateTime
now
=
DateTime
.
Now
;
14
}
15
16
// Token: 0x06003923 RID: 14627 RVA: 0x0022C88C File Offset: 0x0022AA8C
17
public
void
Add
(
Vector2
position)
18
{
19
int <Count>k__BackingField = this.
_pings
.<
Count
>k__BackingField;
20
SlotVector
<
PingMapLayer
.
Ping
>
pings
= this.
_pings
;
21
}
22
23
// Token: 0x06003924 RID: 14628 RVA: 0x0022C8AC File Offset: 0x0022AAAC
24
public
PingMapLayer
()
25
{
26
}
27
28
// Token: 0x040079B2 RID: 31154
29
private
const
double
PING_DURATION_IN_SECONDS
= 15.0;
30
31
// Token: 0x040079B3 RID: 31155
32
private
const
double
PING_FRAME_RATE
= 10.0;
33
34
// Token: 0x040079B4 RID: 31156
35
private
readonly
SlotVector
<
PingMapLayer
.
Ping
>
_pings
;
36
37
// Token: 0x020006BE RID: 1726
38
private
struct
Ping
39
{
40
// Token: 0x06003925 RID: 14629 RVA: 0x0022C8C0 File Offset: 0x0022AAC0
41
public
Ping
(
Vector2
position)
42
{
43
if
(!
true
)
44
{
45
}
46
DateTime
now
=
DateTime
.
Now
;
47
this.Time
=
now
;
48
}
49
50
// Token: 0x040079B5 RID: 31157
51
public
readonly
Vector2
Position
;
52
53
// Token: 0x040079B6 RID: 31158
54
public
readonly
DateTime
Time
;
55
}
56
}
57
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
ReLogic.Utilities.SlotVector
Definition
SlotVector.cs:11
Terraria.Map.PingMapLayer._pings
readonly SlotVector< PingMapLayer.Ping > _pings
Definition
PingMapLayer.cs:35
Terraria.Map.PingMapLayer.PING_FRAME_RATE
const double PING_FRAME_RATE
Definition
PingMapLayer.cs:32
Terraria.Map.PingMapLayer.Draw
void Draw(MapOverlayDrawContext context, string text)
Definition
PingMapLayer.cs:11
Terraria.Map.PingMapLayer.PING_DURATION_IN_SECONDS
const double PING_DURATION_IN_SECONDS
Definition
PingMapLayer.cs:29
Terraria.Map.PingMapLayer.PingMapLayer
PingMapLayer()
Definition
PingMapLayer.cs:24
Terraria.Map.PingMapLayer.Add
void Add(Vector2 position)
Definition
PingMapLayer.cs:17
Terraria.Map.PingMapLayer
Definition
PingMapLayer.cs:9
Terraria.Map.IMapLayer
Definition
IMapLayer.cs:7
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Utilities
Definition
AttributeUtilities.cs:6
System.ExceptionArgument.text
@ text
System
Definition
__ComObject.cs:4
Terraria.Map
Definition
IMapLayer.cs:4
Terraria.PartyHatColor.Count
@ Count
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
System.DateTime.Now
static DateTime Now
Definition
DateTime.cs:530
System.DateTime
Definition
DateTime.cs:13
Terraria.Map.MapOverlayDrawContext
Definition
MapOverlayDrawContext.cs:11
Terraria.Map.PingMapLayer.Ping.Time
readonly DateTime Time
Definition
PingMapLayer.cs:54
Terraria.Map.PingMapLayer.Ping.Position
readonly Vector2 Position
Definition
PingMapLayer.cs:51
Terraria.Map.PingMapLayer.Ping.Ping
Ping(Vector2 position)
Definition
PingMapLayer.cs:41
Terraria.Map.PingMapLayer.Ping
Definition
PingMapLayer.cs:39
source
Terraria
Map
PingMapLayer.cs
Generated by
1.10.0