Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitSpotSpawn.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x020003BD RID: 957
5public class TraitSpotSpawn : Trait
6{
7 // Token: 0x17000878 RID: 2168
8 // (get) Token: 0x06001C3E RID: 7230 RVA: 0x000A99BC File Offset: 0x000A7BBC
9 public override int radius
10 {
11 get
12 {
13 return 5;
14 }
15 }
16
17 // Token: 0x17000879 RID: 2169
18 // (get) Token: 0x06001C3F RID: 7231 RVA: 0x000A99BF File Offset: 0x000A7BBF
19 public override bool HaveUpdate
20 {
21 get
22 {
23 return true;
24 }
25 }
26
27 // Token: 0x06001C40 RID: 7232 RVA: 0x000A99C4 File Offset: 0x000A7BC4
28 public override void Update()
29 {
30 for (int i = this.children.Count - 1; i >= 0; i--)
31 {
32 if (this.children[i].isDead)
33 {
34 this.children.RemoveAt(i);
35 }
36 }
37 if (this.children.Count > 5)
38 {
39 return;
40 }
41 Point randomPoint = EClass._map.GetRandomPoint(this.owner.pos, this.radius, 100, true, true);
42 Chara chara = EClass._zone.SpawnMob(randomPoint, null);
43 if (chara != null)
44 {
45 this.children.Add(chara);
46 }
47 }
48
49 // Token: 0x040010C3 RID: 4291
50 public List<Chara> children = new List<Chara>();
51}
Definition Chara.cs:12
Definition Point.cs:11
Definition Trait.cs:9