Elin Modding Docs Doc
Loading...
Searching...
No Matches
TraitElevator.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000469 RID: 1129
6{
7 // Token: 0x170009C5 RID: 2501
8 // (get) Token: 0x06001F5D RID: 8029 RVA: 0x000B1B3A File Offset: 0x000AFD3A
9 public override ZoneTransition.EnterState enterState
10 {
11 get
12 {
13 return ZoneTransition.EnterState.Elevator;
14 }
15 }
16
17 // Token: 0x170009C6 RID: 2502
18 // (get) Token: 0x06001F5E RID: 8030 RVA: 0x000B1B3E File Offset: 0x000AFD3E
19 public override string langOnUse
20 {
21 get
22 {
23 return "actUse";
24 }
25 }
26
27 // Token: 0x170009C7 RID: 2503
28 // (get) Token: 0x06001F5F RID: 8031 RVA: 0x000B1B45 File Offset: 0x000AFD45
29 public override bool IsTeleport
30 {
31 get
32 {
33 return true;
34 }
35 }
36
37 // Token: 0x170009C8 RID: 2504
38 // (get) Token: 0x06001F60 RID: 8032 RVA: 0x000B1B48 File Offset: 0x000AFD48
39 public override bool OnlyInTheSameTopZone
40 {
41 get
42 {
43 return true;
44 }
45 }
46
47 // Token: 0x170009C9 RID: 2505
48 // (get) Token: 0x06001F61 RID: 8033 RVA: 0x000B1B4B File Offset: 0x000AFD4B
49 public override bool CanBeHeld
50 {
51 get
52 {
53 return true;
54 }
55 }
56
57 // Token: 0x06001F62 RID: 8034 RVA: 0x000B1B50 File Offset: 0x000AFD50
58 public override void TrySetAct(ActPlan p)
59 {
60 base.TrySetAct(p);
61 if (p.input == ActInput.AllAction && !EClass._zone.isExternalZone && (EClass.debug.enable || !this.owner.isNPCProperty))
62 {
63 List<Zone> list = new List<Zone>();
64 Zone topZone = EClass._zone.GetTopZone();
65 if (topZone != EClass._zone)
66 {
67 list.Add(topZone);
68 }
69 foreach (Spatial spatial in topZone.children)
70 {
71 if (spatial != EClass._zone && !spatial.isExternalZone)
72 {
73 list.Add(spatial as Zone);
74 }
75 }
76 if (list.Count > 0)
77 {
78 Action<int, string> <>9__2;
79 p.TrySetAct("actSetElevatorLevel", delegate()
80 {
81 LayerList layerList = EClass.ui.AddLayer<LayerList>();
82 ICollection<Zone> list = list;
83 Func<Zone, string> getString = (Zone z) => z.NameWithLevel;
84 Action<int, string> onSelect;
85 if ((onSelect = <>9__2) == null)
86 {
87 onSelect = (<>9__2 = delegate(int a, string s)
88 {
89 this.zone = list[a];
90 });
91 }
92 layerList.SetList<Zone>(list, getString, onSelect, true);
93 return false;
94 }, this.owner, null, 1, false, true, false);
95 }
96 }
97 }
98}
Definition Zone.cs:14