Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitNote.cs
1using System;
2
3// Token: 0x0200044F RID: 1103
4public class TraitNote : Trait
5{
6 // Token: 0x06001EDD RID: 7901 RVA: 0x000B0591 File Offset: 0x000AE791
7 public override void OnCreate(int lv)
8 {
9 if (base.GetParam(1, null) != null)
10 {
11 this.owner.c_note = base.GetParam(1, null);
12 }
13 }
14
15 // Token: 0x06001EDE RID: 7902 RVA: 0x000B05B0 File Offset: 0x000AE7B0
16 public override void OnImportMap()
17 {
18 this.OnCreate(EClass._zone.DangerLv);
19 }
20
21 // Token: 0x06001EDF RID: 7903 RVA: 0x000B05C4 File Offset: 0x000AE7C4
22 public override void TrySetAct(ActPlan p)
23 {
24 if (p.altAction)
25 {
26 p.TrySetAct("actWrite", delegate()
27 {
28 Dialog.InputName("dialogWriteNote", this.owner.c_note, delegate(bool cancel, string text)
29 {
30 if (!cancel)
31 {
32 this.owner.c_note = text;
33 }
34 }, Dialog.InputType.Default);
35 return false;
36 }, this.owner, null, 1, false, true, false);
37 }
38 }
39}
Definition Trait.cs:9