Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitElevator.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4{
6
7 public override string langOnUse => "actUse";
8
9 public override bool IsTeleport => true;
10
11 public override bool OnlyInTheSameTopZone => true;
12
13 public override bool CanBeHeld => true;
14
15 public override void TrySetAct(ActPlan p)
16 {
17 base.TrySetAct(p);
19 {
20 return;
21 }
22 List<Zone> list = new List<Zone>();
23 Zone topZone = EClass._zone.GetTopZone();
24 if (topZone != EClass._zone)
25 {
26 list.Add(topZone);
27 }
28 foreach (Spatial child in topZone.children)
29 {
30 if (child != EClass._zone && !child.isExternalZone)
31 {
32 list.Add(child as Zone);
33 }
34 }
35 if (list.Count <= 0)
36 {
37 return;
38 }
39 p.TrySetAct("actSetElevatorLevel", delegate
40 {
41 EClass.ui.AddLayer<LayerList>().SetList(list, (Zone z) => z.NameWithLevel, delegate(int a, string s)
42 {
43 base.zone = list[a];
44 });
45 return false;
46 }, owner);
47 }
48}
ActInput
Definition: ActInput.cs:2
ActInput input
Definition: ActPlan.cs:151
bool isNPCProperty
Definition: Card.cs:526
bool enable
Definition: CoreDebug.cs:285
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static CoreDebug debug
Definition: EClass.cs:48
static UI ui
Definition: EClass.cs:16
bool isExternalZone
Definition: Spatial.cs:370
List< Spatial > children
Definition: Spatial.cs:37
override string langOnUse
Definition: TraitElevator.cs:7
override bool CanBeHeld
override bool OnlyInTheSameTopZone
override ZoneTransition.EnterState enterState
Definition: TraitElevator.cs:5
override bool IsTeleport
Definition: TraitElevator.cs:9
override void TrySetAct(ActPlan p)
Card owner
Definition: Trait.cs:26
Definition: Zone.cs:12
Zone GetTopZone()
Definition: Zone.cs:1854
string NameWithLevel
Definition: Zone.cs:422