Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
NotificationGuest Class Reference
Inheritance diagram for NotificationGuest:
NotificationGlobal BaseNotification EClass

Public Member Functions

override void OnRefresh ()
 
override void OnClick ()
 
- Public Member Functions inherited from BaseNotification
virtual ItemNotice GetMold ()
 
virtual LayoutGroup GetLayoutGroup ()
 
void Refresh ()
 
virtual void OnClick ()
 
virtual void OnRefresh ()
 
virtual bool ShouldRemove ()
 
virtual void OnInstantiate ()
 

Public Attributes

int index
 
- Public Attributes inherited from BaseNotification
ItemNotice item
 
string text
 
string lastText
 

Properties

override int idSprite [get]
 
override bool Visible [get]
 
override Action< UITooltiponShowTooltip [get]
 
- Properties inherited from NotificationGlobal
virtual WidgetNotice widget [get]
 
- Properties inherited from BaseNotification
virtual Sprite Sprite [get]
 
virtual int idSprite [get]
 
virtual bool Visible [get]
 
virtual bool Interactable [get]
 
virtual Action< UITooltiponShowTooltip [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 4 of file NotificationGuest.cs.

Member Function Documentation

◆ OnClick()

override void NotificationGuest.OnClick ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 22 of file NotificationGuest.cs.

23 {
24 if (EClass.AdvMode)
25 {
26 return;
27 }
28 List<Chara> list = new List<Chara>();
29 foreach (Chara chara in EClass._map.charas)
30 {
31 if (chara.IsGuest() && chara.IsAliveInCurrentZone)
32 {
33 list.Add(chara);
34 }
35 }
36 index++;
37 if (index >= list.Count)
38 {
39 index = 0;
40 }
41 EClass.screen.Focus(list[index]);
42 }
void Focus(Int3 ints)
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
bool IsGuest()
Definition: Chara.cs:5967
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
static bool AdvMode
Definition: EClass.cs:10
static BaseGameScreen screen
Definition: EClass.cs:32
List< Chara > charas
Definition: Map.cs:81

References EClass._map, EClass.AdvMode, Map.charas, BaseGameScreen.Focus(), index, Chara.IsAliveInCurrentZone, Chara.IsGuest(), and EClass.screen.

◆ OnRefresh()

override void NotificationGuest.OnRefresh ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 17 of file NotificationGuest.cs.

18 {
19 text = widget.guests.ToString() ?? "";
20 }
virtual WidgetNotice widget

References WidgetNotice.guests, BaseNotification.text, and NotificationGlobal.widget.

Member Data Documentation

◆ index

int NotificationGuest.index

Definition at line 6 of file NotificationGuest.cs.

Referenced by OnClick().

Property Documentation

◆ idSprite

override int NotificationGuest.idSprite
get

Definition at line 8 of file NotificationGuest.cs.

◆ onShowTooltip

override Action<UITooltip> NotificationGuest.onShowTooltip
get

Definition at line 12 of file NotificationGuest.cs.

◆ Visible

override bool NotificationGuest.Visible
get

Definition at line 10 of file NotificationGuest.cs.


The documentation for this class was generated from the following file: