Elin Modding Docs Doc
Loading...
Searching...
No Matches
Stats Class Reference
Inheritance diagram for Stats:
BaseStats EClass StatsBurden StatsHunger StatsMana StatsSAN StatsSleepiness StatsStamina

Public Member Functions

override int GetValue ()
 
override string ToString ()
 
override string GetText ()
 
override Color GetColor (Gradient g)
 
Stats Set (int[] _raw, int _rawIndex, Chara _CC)
 
override int GetPhase ()
 
virtual void Set (int a)
 
virtual void Mod (int a)
 
virtual void OnChangePhase (int phase, int lastPhase)
 
- Public Member Functions inherited from BaseStats
virtual Color GetColor (SkinColorProfile c)
 
Color GetColor ()
 
virtual string GetPhaseStr ()
 
virtual Sprite GetSprite ()
 
virtual void SetText (UIText t, SkinColorProfile cols=null)
 
void PopText ()
 
virtual void WriteNote (UINote n, Action< UINote > onWriteNote=null)
 
virtual void _WriteNote (UINote n, bool asChild=false)
 

Public Attributes

int rawIndex
 
int[] raw
 
- Public Attributes inherited from BaseStats
int id
 
SourceStat.Row _source
 

Static Public Attributes

static StatsHunger Hunger
 
static StatsBurden Burden
 
static StatsStamina Stamina
 
static StatsSleepiness Sleepiness
 
static Stats Depression
 
static Stats Bladder
 
static Stats Hygiene
 
static StatsMana Mana
 
static StatsSAN SAN
 
- Static Public Attributes inherited from BaseStats
static Chara CC
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

virtual int value [get, set]
 
virtual int max [get, set]
 
string name [get]
 
virtual bool TrackPhaseChange [get]
 
virtual int min [get]
 
- Properties inherited from BaseStats
SourceStat.Row source [get]
 
virtual Emo2 EmoIcon [get]
 
virtual ConditionType Type [get]
 
virtual string idSprite [get]
 
virtual bool ShowInWidget [get]
 
virtual Chara Owner [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)
 

Detailed Description

Definition at line 5 of file Stats.cs.

Member Function Documentation

◆ GetColor()

override Color Stats.GetColor ( Gradient g)
virtual

Reimplemented from BaseStats.

Definition at line 97 of file Stats.cs.

◆ GetPhase()

override int Stats.GetPhase ( )
virtual

Reimplemented from BaseStats.

Definition at line 112 of file Stats.cs.

◆ GetText()

override string Stats.GetText ( )
virtual

Reimplemented from BaseStats.

Definition at line 86 of file Stats.cs.

◆ GetValue()

override int Stats.GetValue ( )
virtual

Reimplemented from BaseStats.

Definition at line 8 of file Stats.cs.

◆ Mod()

virtual void Stats.Mod ( int a)
virtual

Definition at line 133 of file Stats.cs.

◆ OnChangePhase()

virtual void Stats.OnChangePhase ( int phase,
int lastPhase )
virtual

Definition at line 174 of file Stats.cs.

◆ Set() [1/2]

virtual void Stats.Set ( int a)
virtual

Definition at line 118 of file Stats.cs.

◆ Set() [2/2]

Stats Stats.Set ( int[] _raw,
int _rawIndex,
Chara _CC )

Definition at line 103 of file Stats.cs.

◆ ToString()

override string Stats.ToString ( )

Definition at line 73 of file Stats.cs.

Member Data Documentation

◆ Bladder

Stats Stats.Bladder
static
Initial value:
= new Stats
{
id = 6
}
Definition Stats.cs:6

Definition at line 228 of file Stats.cs.

◆ Burden

StatsBurden Stats.Burden
static
Initial value:
{
id = 1
}

Definition at line 204 of file Stats.cs.

◆ Depression

Stats Stats.Depression
static
Initial value:
= new Stats
{
id = 5
}

Definition at line 222 of file Stats.cs.

◆ Hunger

StatsHunger Stats.Hunger
static
Initial value:
{
id = 0
}

Definition at line 198 of file Stats.cs.

◆ Hygiene

Stats Stats.Hygiene
static
Initial value:
= new Stats
{
id = 7
}

Definition at line 234 of file Stats.cs.

◆ Mana

StatsMana Stats.Mana
static
Initial value:
= new StatsMana
{
id = 8
}

Definition at line 240 of file Stats.cs.

◆ raw

int [] Stats.raw

Definition at line 255 of file Stats.cs.

◆ rawIndex

int Stats.rawIndex

Definition at line 252 of file Stats.cs.

◆ SAN

StatsSAN Stats.SAN
static
Initial value:
= new StatsSAN
{
id = 13
}

Definition at line 246 of file Stats.cs.

◆ Sleepiness

StatsSleepiness Stats.Sleepiness
static
Initial value:

Definition at line 216 of file Stats.cs.

◆ Stamina

StatsStamina Stats.Stamina
static
Initial value:
{
id = 3
}

Definition at line 210 of file Stats.cs.

Property Documentation

◆ max

virtual int Stats.max
getset

Definition at line 31 of file Stats.cs.

◆ min

virtual int Stats.min
get

Definition at line 64 of file Stats.cs.

◆ name

string Stats.name
get

Definition at line 44 of file Stats.cs.

◆ TrackPhaseChange

virtual bool Stats.TrackPhaseChange
get

Definition at line 54 of file Stats.cs.

◆ value

virtual int Stats.value
getset

Definition at line 16 of file Stats.cs.


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