Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FixExploitManEaters.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
3
namespace
Terraria.GameContent
;
4
5
public
static
class
FixExploitManEaters
6
{
7
private
static
readonly
List<int>
IndexesProtected
=
new
List<int>
();
8
9
public
static
void
Update
()
10
{
11
IndexesProtected
.Clear();
12
}
13
14
public
static
void
ProtectSpot
(
int
x,
int
y)
15
{
16
int
item = ((x & 0xFFFF) << 16) | (y & 0xFFFF);
17
if
(!
IndexesProtected
.Contains(item))
18
{
19
IndexesProtected
.Add(item);
20
}
21
}
22
23
public
static
bool
SpotProtected
(
int
x,
int
y)
24
{
25
int
item = ((x & 0xFFFF) << 16) | (y & 0xFFFF);
26
return
IndexesProtected
.Contains(item);
27
}
28
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.GameContent.FixExploitManEaters.ProtectSpot
static void ProtectSpot(int x, int y)
Definition
FixExploitManEaters.cs:14
Terraria.GameContent.FixExploitManEaters.IndexesProtected
static readonly List< int > IndexesProtected
Definition
FixExploitManEaters.cs:7
Terraria.GameContent.FixExploitManEaters.Update
static void Update()
Definition
FixExploitManEaters.cs:9
Terraria.GameContent.FixExploitManEaters.SpotProtected
static bool SpotProtected(int x, int y)
Definition
FixExploitManEaters.cs:23
Terraria.GameContent.FixExploitManEaters
Definition
FixExploitManEaters.cs:6
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
Terraria.GameContent
Definition
AchievementsHelper.cs:1
source
Terraria.GameContent
FixExploitManEaters.cs
Generated by
1.10.0