Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneEventPhone Class Reference
Inheritance diagram for ZoneEventPhone:
ZoneEvent EClass

Public Member Functions

override void OnInit ()
 
override void OnTickRound ()
 
override void OnKill ()
 
- Public Member Functions inherited from ZoneEvent
virtual string GetText ()
 
void Tick (float delta)
 
void Init ()
 
void OnSimulateHour ()
 
virtual void OnVisit ()
 
virtual void OnInit ()
 
virtual void OnFirstTick ()
 
virtual void OnTick ()
 
virtual void OnTickRound ()
 
virtual void OnKill ()
 
virtual void OnCharaDie (Chara c)
 
virtual void OnLeaveZone ()
 
void OnLoad (Zone _zone)
 
void Kill ()
 

Public Attributes

int uidPhone
 
int ring
 
- Public Attributes inherited from ZoneEvent
float time
 
int rounds
 
int hoursElapsed
 
int minElapsed
 
Zone zone
 
bool firstTick = true
 

Properties

override int hoursToKill [get]
 
TraitPhone Phone [get]
 
- Properties inherited from ZoneEvent
SourceQuest.Row source [get]
 
virtual string id [get]
 
virtual string TextWidgetDate [get]
 
virtual float roundInterval [get]
 
virtual Playlist playlist [get]
 
virtual bool debugSkip [get]
 
virtual string RefStr2 [get]
 
virtual string RefStr3 [get]
 
virtual int hoursToKill [get]
 
virtual bool HasReport [get]
 
string Name [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 3 of file ZoneEventPhone.cs.

Member Function Documentation

◆ OnInit()

override void ZoneEventPhone.OnInit ( )
inlinevirtual

Reimplemented from ZoneEvent.

Definition at line 15 of file ZoneEventPhone.cs.

16 {
17 ring = EClass.rnd(4) + 3;
18 }
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:50

References ring, and EClass.rnd().

◆ OnKill()

override void ZoneEventPhone.OnKill ( )
inlinevirtual

Reimplemented from ZoneEvent.

Definition at line 38 of file ZoneEventPhone.cs.

39 {
40 if (Phone != null)
41 {
42 Phone.ev = null;
43 }
44 }
TraitPhone Phone

References Phone.

◆ OnTickRound()

override void ZoneEventPhone.OnTickRound ( )
inlinevirtual

Reimplemented from ZoneEvent.

Definition at line 20 of file ZoneEventPhone.cs.

21 {
22 TraitPhone phone = Phone;
23 if (phone == null)
24 {
25 Kill();
26 return;
27 }
28 ring--;
29 phone.owner.TalkRaw(Lang.Game.Get("phone_boss"));
30 phone.owner.PlayAnime(AnimeID.Shiver);
31 phone.ev = this;
32 if (ring < 0)
33 {
34 Kill();
35 }
36 }
AnimeID
Definition: AnimeID.cs:2
void PlayAnime(AnimeID id, bool force=false)
Definition: Card.cs:5423
void TalkRaw(string text, string ref1=null, string ref2=null, bool forceSync=false)
Definition: Card.cs:5988
Definition: Lang.cs:6
static LangGame Game
Definition: Lang.cs:48
string Get(string id)
Definition: SourceLang.cs:12
Card owner
Definition: Trait.cs:26
void Kill()
Definition: ZoneEvent.cs:115

References Lang.Game, SourceLang< T >.Get(), ZoneEvent.Kill(), Trait.owner, Phone, Card.PlayAnime(), ring, and Card.TalkRaw().

Member Data Documentation

◆ ring

int ZoneEventPhone.ring

Definition at line 9 of file ZoneEventPhone.cs.

Referenced by OnInit(), and OnTickRound().

◆ uidPhone

int ZoneEventPhone.uidPhone

Definition at line 6 of file ZoneEventPhone.cs.

Property Documentation

◆ hoursToKill

override int ZoneEventPhone.hoursToKill
get

Definition at line 11 of file ZoneEventPhone.cs.

◆ Phone

TraitPhone ZoneEventPhone.Phone
get

Definition at line 13 of file ZoneEventPhone.cs.

Referenced by OnKill(), and OnTickRound().


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