Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
HotItemFocusPos.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2
4{
5 [JsonProperty]
6 public int x;
7
8 [JsonProperty]
9 public int y;
10
11 [JsonProperty]
12 public Zone zone;
13
14 public override string Name => "focusTo".lang(text.IsEmpty() ? (x + "/" + y) : "", text.IsEmpty((zone == null) ? "???" : zone.Name));
15
16 public override string pathSprite => "icon_focus";
17
18 public override bool CanChangeIconColor => true;
19
20 public override void Perform()
21 {
23 {
24 SE.Beep();
25 return;
26 }
27 EClass.pc.SetAIImmediate(new AI_Goto(new Point(x, y), 0));
29 }
30}
void SetTurbo(int mtp=-1)
Definition: AM_Adv.cs:1040
static AM_Adv Adv
Definition: ActionMode.cs:15
void SetAIImmediate(AIAct g)
Definition: Chara.cs:8077
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static Chara pc
Definition: EClass.cs:14
Zone activeZone
Definition: Game.cs:245
string text
Definition: HotAction.cs:10
override void Perform()
override string Name
override string pathSprite
override bool CanChangeIconColor
Definition: Point.cs:9
virtual string Name
Definition: Spatial.cs:495
Definition: Zone.cs:12