Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
playerstatbase.c File Reference

Go to the source code of this file.

Data Structures

class  PlayerStatBase

Functions

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

Variables

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

Function Documentation

◆ Add()

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

Definition at line 129 of file playerstatbase.c.

References m_Value, and Set().

◆ CreateRecord()

void CreateRecord ( float value,
string system )
protected

Definition at line 164 of file playerstatbase.c.

References g_Game, and m_Records.

◆ Get()

◆ GetLabel()

override string GetLabel ( )
protected

Definition at line 139 of file playerstatbase.c.

References m_ValueLabel.

◆ GetManager()

PlayerStats GetManager ( )
protected

Definition at line 198 of file playerstatbase.c.

References m_Manager, and PlayerStats().

Referenced by PMTPlayback::CheckOnePlaying(), and CheckTestEvents().

◆ GetMax()

override float GetMax ( )
protected

Definition at line 144 of file playerstatbase.c.

References m_MaxValue.

Referenced by ManBase::ResetPlayer().

◆ GetMin()

override float GetMin ( )
protected

Definition at line 149 of file playerstatbase.c.

References m_MinValue.

◆ GetNormalized()

override float GetNormalized ( )
protected

◆ GetRecords()

override array< PlayerStatRecord > GetRecords ( )
protected

Definition at line 159 of file playerstatbase.c.

References m_Records.

◆ Init()

override void Init ( int id)
protected

Definition at line 54 of file playerstatbase.c.

References m_Type.

◆ IsSynced()

override bool IsSynced ( )
protected

Definition at line 64 of file playerstatbase.c.

References m_Flags.

◆ 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.

References PlayerStatBase::Get(), and Set().

◆ OnRPC()

override void OnRPC ( ParamsReadContext ctx)
protected

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx)
protected

Definition at line 174 of file playerstatbase.c.

References m_Value, and Serializer::Read().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 169 of file playerstatbase.c.

References m_Value, and Serializer::Write().

◆ PlayerStat()

◆ SerializeValue()

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

Definition at line 59 of file playerstatbase.c.

References PlayerStatBase::Get(), and PlayerStatBase::GetLabel().

◆ Set()

◆ SetByFloat()

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

Definition at line 118 of file playerstatbase.c.

References Set().

◆ SetByFloatEx()

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

Definition at line 124 of file playerstatbase.c.

References PlayerStatBase::SetByFloat().

Variable Documentation

◆ m_Flags

int m_Flags
protected

Definition at line 39 of file playerstatbase.c.

Referenced by IsSynced(), and PlayerStat().

◆ m_Manager

PlayerStats m_Manager
protected

DEPRECATED.

Definition at line 196 of file playerstatbase.c.

◆ m_MaxValue

◆ m_MinValue

◆ m_Records

ref array<PlayerStatRecord> m_Records
protected

Definition at line 41 of file playerstatbase.c.

Referenced by CreateRecord(), GetRecords(), and PlayerStat().

◆ 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.

Referenced by GetLabel(), and PlayerStat().

◆ m_ValueLastSynced

T m_ValueLastSynced
protected

Definition at line 37 of file playerstatbase.c.

Referenced by Set().