Elin Modding Docs Doc
All Classes Namespaces
ZoneInstanceBout.cs
1using System;
2using Newtonsoft.Json;
3
4// Token: 0x0200073B RID: 1851
6{
7 // Token: 0x1700102D RID: 4141
8 // (get) Token: 0x060034F5 RID: 13557 RVA: 0x0011D4FD File Offset: 0x0011B6FD
9 public override ZoneTransition.EnterState ReturnState
10 {
11 get
12 {
13 return ZoneTransition.EnterState.Exact;
14 }
15 }
16
17 // Token: 0x060034F6 RID: 13558 RVA: 0x0011D504 File Offset: 0x0011B704
18 public override void OnLeaveZone()
19 {
20 Chara chara = EClass.game.cards.Find(this.uidTarget);
21 if (chara == null)
22 {
23 return;
24 }
25 if (chara.isDead)
26 {
27 chara.Revive(null, false);
28 }
29 chara.HealAll();
30 chara.c_originalHostility = (chara.hostility = Hostility.Friend);
31 chara.SetEnemy(null);
32 chara.SetAI(new NoGoal());
33 chara.MoveZone(EClass.game.spatials.Find(this.uidZone), new ZoneTransition
34 {
35 state = ZoneTransition.EnterState.Exact,
36 x = this.targetX,
37 z = this.targetZ
38 });
39 }
40
41 // Token: 0x04001C5D RID: 7261
42 [JsonProperty]
43 public int uidTarget;
44
45 // Token: 0x04001C5E RID: 7262
46 [JsonProperty]
47 public int targetX;
48
49 // Token: 0x04001C5F RID: 7263
50 [JsonProperty]
51 public int targetZ;
52}
Definition Chara.cs:12