Elin Modding Docs Doc
Loading...
Searching...
No Matches
Meeting.cs
1using System;
2using Newtonsoft.Json;
3using UnityEngine;
4
5// Token: 0x0200006F RID: 111
6public class Meeting : EClass
7{
8 // Token: 0x17000099 RID: 153
9 // (get) Token: 0x0600033C RID: 828 RVA: 0x00018C39 File Offset: 0x00016E39
10 public virtual bool IsGlobalChara
11 {
12 get
13 {
14 return false;
15 }
16 }
17
18 // Token: 0x1700009A RID: 154
19 // (get) Token: 0x0600033D RID: 829 RVA: 0x00018C3C File Offset: 0x00016E3C
20 public virtual string IdChara
21 {
22 get
23 {
24 return "begger";
25 }
26 }
27
28 // Token: 0x0600033E RID: 830 RVA: 0x00018C43 File Offset: 0x00016E43
29 public void SetOwner(FactionBranch _branch)
30 {
31 this.branch = _branch;
32 }
33
34 // Token: 0x0600033F RID: 831 RVA: 0x00018C4C File Offset: 0x00016E4C
35 public void SetChara(Point pos)
36 {
37 if (this.IsGlobalChara)
38 {
39 this.chara = EClass.game.cards.globalCharas.Find(this.IdChara);
40 if (this.chara == null)
41 {
42 Debug.Log("creating chara for meeting:" + this.IdChara);
43 this.chara = CharaGen.Create(this.IdChara, -1);
44 this.chara.SetGlobal();
45 EClass.game.spatials.Find("somewhere").AddCard(this.chara);
46 }
47 }
48 else
49 {
50 this.chara = EClass._zone.AddCard(CharaGen.Create(this.IdChara, -1), pos).Chara;
51 }
52 if (this.chara.currentZone != EClass.game.activeZone)
53 {
54 this.chara.MoveZone(EClass.game.activeZone, ZoneTransition.EnterState.Auto);
55 }
56 this.chara.MoveImmediate(pos, true, true);
57 }
58
59 // Token: 0x06000340 RID: 832 RVA: 0x00018D3B File Offset: 0x00016F3B
60 public void Start()
61 {
62 EClass.pc.LookAt(this.chara);
63 this.chara.LookAt(EClass.pc);
64 this.PlayDrama();
65 LayerDrama.Instance.SetOnKill(new Action(this.OnEndDrama));
66 }
67
68 // Token: 0x06000341 RID: 833 RVA: 0x00018D7B File Offset: 0x00016F7B
69 public virtual void PlayDrama()
70 {
71 }
72
73 // Token: 0x06000342 RID: 834 RVA: 0x00018D80 File Offset: 0x00016F80
74 public virtual void OnEndDrama()
75 {
76 if (this.chara.IsGlobal)
77 {
78 this.chara.MoveZone(EClass.game.spatials.Find("somewhere"), ZoneTransition.EnterState.Auto);
79 }
80 else
81 {
82 this.chara.Destroy();
83 }
84 EClass.Branch.meetings.CallNext();
85 }
86
87 // Token: 0x04000569 RID: 1385
88 [JsonProperty]
89 public int dateExipire;
90
91 // Token: 0x0400056A RID: 1386
92 public FactionBranch branch;
93
94 // Token: 0x0400056B RID: 1387
95 public Chara chara;
96}
Definition Chara.cs:12
Definition Point.cs:11