Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
AIWork_Clean.cs
Go to the documentation of this file.
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}
override void OnPerformWork(bool realtime)
Definition: AIWork_Clean.cs:3
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
Point GetRandomPoint()
Definition: MapBounds.cs:97
void SetDecal(int x, int z, int id=0, int amount=1, bool refresh=true)
Definition: Map.cs:2029
MapBounds bounds
Definition: Map.cs:52
Definition: Point.cs:9
bool HasDecal
Definition: Point.cs:139
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39