Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
playerstatbase.c File Reference

Go to the source code of this file.

Classes

class  PlayerStatBase
 

Functions

void PlayerStat (T min, T max, T init, string label, int flags)
 
override void Init (int id)
 
override void SerializeValue (array< ref StatDebugObject > objects, int flags)
 
override bool IsSynced ()
 
override void OnRPC (ParamsReadContext ctx)
 
void Set (T value, string system="")
 
void SetByFloat (float value, string system="")
 
override void SetByFloatEx (float value, string system="")
 
void Add (T value, string system="")
 
override float Get ()
 
override string GetLabel ()
 
override float GetMax ()
 
override float GetMin ()
 
override float GetNormalized ()
 
override array< PlayerStatRecordGetRecords ()
 
void CreateRecord (float value, string system)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx)
 
override void OnAfterStoreLoad ()
 engine reaction to load from database originates in: engine - Person::BinLoad script - PlayerBase.OnAfterStoreLoad
 
PlayerStats GetManager ()
 

Variables

class PlayerStatBase m_MinValue
 
m_MaxValue
 
m_Value
 
m_ValueLastSynced
 
string m_ValueLabel
 
int m_Flags
 
ref array< PlayerStatRecordm_Records
 
PlayerStats m_Manager
 DEPRECATED.
 

Function Documentation

◆ Add()

void Add ( T value,
string system = "" )
protected

Definition at line 129 of file playerstatbase.c.

◆ CreateRecord()

void CreateRecord ( float value,
string system )
protected

Definition at line 164 of file playerstatbase.c.

◆ Get()

override float Get ( )
protected

Definition at line 134 of file playerstatbase.c.

◆ GetLabel()

override string GetLabel ( )
protected

Definition at line 139 of file playerstatbase.c.

◆ GetManager()

PlayerStats GetManager ( )
protected

Definition at line 198 of file playerstatbase.c.

◆ GetMax()

override float GetMax ( )
protected

Definition at line 144 of file playerstatbase.c.

◆ GetMin()

override float GetMin ( )
protected

Definition at line 149 of file playerstatbase.c.

◆ GetNormalized()

override float GetNormalized ( )
protected

Definition at line 154 of file playerstatbase.c.

◆ GetRecords()

override array< PlayerStatRecord > GetRecords ( )
protected

Definition at line 159 of file playerstatbase.c.

◆ Init()

override void Init ( int id)
protected

Definition at line 54 of file playerstatbase.c.

◆ IsSynced()

override bool IsSynced ( )
protected

Definition at line 64 of file playerstatbase.c.

◆ OnAfterStoreLoad()

override void OnAfterStoreLoad ( )
protected

engine reaction to load from database originates in: engine - Person::BinLoad script - PlayerBase.OnAfterStoreLoad

Definition at line 189 of file playerstatbase.c.

◆ OnRPC()

override void OnRPC ( ParamsReadContext ctx)
protected

Definition at line 69 of file playerstatbase.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx)
protected

Definition at line 174 of file playerstatbase.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 169 of file playerstatbase.c.

◆ PlayerStat()

void PlayerStat ( T min,
T max,
T init,
string label,
int flags )
protected

Definition at line 43 of file playerstatbase.c.

◆ SerializeValue()

override void SerializeValue ( array< ref StatDebugObject > objects,
int flags )
protected

Definition at line 59 of file playerstatbase.c.

◆ Set()

void Set ( T value,
string system = "" )
protected

Definition at line 85 of file playerstatbase.c.

◆ SetByFloat()

void SetByFloat ( float value,
string system = "" )
protected

Definition at line 118 of file playerstatbase.c.

◆ SetByFloatEx()

override void SetByFloatEx ( float value,
string system = "" )
protected

Definition at line 124 of file playerstatbase.c.

Variable Documentation

◆ m_Flags

int m_Flags
protected

Definition at line 39 of file playerstatbase.c.

◆ m_Manager

PlayerStats m_Manager
protected

DEPRECATED.

Definition at line 196 of file playerstatbase.c.

◆ m_MaxValue

T m_MaxValue
protected

Definition at line 35 of file playerstatbase.c.

◆ m_MinValue

class PlayerStatBase m_MinValue

◆ m_Records

ref array<PlayerStatRecord> m_Records
protected

Definition at line 41 of file playerstatbase.c.

◆ m_Value

T m_Value
protected

Definition at line 36 of file playerstatbase.c.

◆ m_ValueLabel

string m_ValueLabel
protected

Definition at line 38 of file playerstatbase.c.

◆ m_ValueLastSynced

T m_ValueLastSynced
protected

Definition at line 37 of file playerstatbase.c.