Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
AIWork_Clean.cs
Go to the documentation of this file.
1
public
class
AIWork_Clean
:
AIWork_Chore
2
{
3
public
override
void
OnPerformWork
(
bool
realtime)
4
{
5
for
(
int
i = 0; i < 30; i++)
6
{
7
Point
randomPoint =
EClass
.
_map
.
bounds
.
GetRandomPoint
();
8
if
(randomPoint.
HasDecal
)
9
{
10
EClass
.
_map
.
SetDecal
(randomPoint.
x
, randomPoint.
z
);
11
}
12
}
13
}
14
}
AIWork_Chore
Definition:
AIWork_Chore.cs:2
AIWork_Clean
Definition:
AIWork_Clean.cs:2
AIWork_Clean.OnPerformWork
override void OnPerformWork(bool realtime)
Definition:
AIWork_Clean.cs:3
EClass
Definition:
EClass.cs:5
EClass._map
static Map _map
Definition:
EClass.cs:18
MapBounds.GetRandomPoint
Point GetRandomPoint()
Definition:
MapBounds.cs:97
Map.SetDecal
void SetDecal(int x, int z, int id=0, int amount=1, bool refresh=true)
Definition:
Map.cs:2029
Map.bounds
MapBounds bounds
Definition:
Map.cs:52
Point
Definition:
Point.cs:9
Point.HasDecal
bool HasDecal
Definition:
Point.cs:139
Point.x
int x
Definition:
Point.cs:36
Point.z
int z
Definition:
Point.cs:39
Elin
AIWork_Clean.cs
Generated by
1.9.6