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

Go to the source code of this file.

Enumerations

enum  EPSstatsFlags { EMPTY = 0 , SYNCED = 1 }

Functions

void ~PlayerStats ()
void GatherAllRecords ()
bool GetAllowLogs ()
void GetDebugInfo (array< ref StatDebugObject > objects, int flags)
PlayerStatsPCO_Base GetPCO (int version=-1)
PlayerStatBase GetStatObject (int id)
void Init (Man player)
bool LoadStats (ParamsReadContext ctx, int version)
void OnAfterStoreLoad ()
void OnRPC (ParamsReadContext ctx)
void PlayerStats (Man player)
void ResetAllStats ()
void SaveStats (ParamsWriteContext ctx)
void SetAllowLogs (bool enable)

Variables

bool m_AllowLogs
ref PCOHandlerStats m_PCOhandler
Man m_Player
enum EPSstatsFlags m_PlayerStats
ref array< ref StatDebugObjectm_PlayerStatsDebug
ref Timer m_SyncTimer
string m_System = "Stats"

Enumeration Type Documentation

◆ EPSstatsFlags

Enumerator
EMPTY 
SYNCED 

Definition at line 1 of file playerstats.c.

Function Documentation

◆ ~PlayerStats()

void ~PlayerStats ( )

Definition at line 35 of file playerstats.c.

◆ GatherAllRecords()

void GatherAllRecords ( )

Definition at line 74 of file playerstats.c.

◆ GetAllowLogs()

bool GetAllowLogs ( )

Definition at line 59 of file playerstats.c.

References m_AllowLogs.

◆ GetDebugInfo()

void GetDebugInfo ( array< ref StatDebugObject > objects,
int flags )

Definition at line 64 of file playerstats.c.

◆ GetPCO()

PlayerStatsPCO_Base GetPCO ( int version = -1)

Definition at line 30 of file playerstats.c.

References m_PCOhandler.

Referenced by GetStatObject(), LoadStats(), OnAfterStoreLoad(), OnRPC(), ResetAllStats(), and SaveStats().

◆ GetStatObject()

PlayerStatBase GetStatObject ( int id)

Definition at line 41 of file playerstats.c.

References GetPCO().

◆ Init()

void Init ( Man player)

Definition at line 25 of file playerstats.c.

◆ LoadStats()

bool LoadStats ( ParamsReadContext ctx,
int version )

Definition at line 115 of file playerstats.c.

References GetPCO().

Referenced by ManBase::OnStoreLoad().

◆ OnAfterStoreLoad()

void OnAfterStoreLoad ( )

Definition at line 140 of file playerstats.c.

References GetPCO().

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)

Definition at line 135 of file playerstats.c.

References GetPCO().

◆ PlayerStats()

void PlayerStats ( Man player)

Definition at line 19 of file playerstats.c.

References Init(), and m_PCOhandler.

Referenced by GetManager(), ManBase::GetPlayerStats(), and ManBase::Init().

◆ ResetAllStats()

void ResetAllStats ( )

Definition at line 130 of file playerstats.c.

References GetPCO().

◆ SaveStats()

void SaveStats ( ParamsWriteContext ctx)

Definition at line 99 of file playerstats.c.

References g_Game, and GetPCO().

◆ SetAllowLogs()

void SetAllowLogs ( bool enable)

Definition at line 54 of file playerstats.c.

References m_AllowLogs.

Variable Documentation

◆ m_AllowLogs

bool m_AllowLogs

Definition at line 16 of file playerstats.c.

Referenced by GetAllowLogs(), and SetAllowLogs().

◆ m_PCOhandler

ref PCOHandlerStats m_PCOhandler

Definition at line 12 of file playerstats.c.

Referenced by GetPCO(), and PlayerStats().

◆ m_Player

Man m_Player

Definition at line 15 of file playerstats.c.

◆ m_PlayerStats

◆ m_PlayerStatsDebug

ref array<ref StatDebugObject> m_PlayerStatsDebug

Definition at line 10 of file playerstats.c.

◆ m_SyncTimer

ref Timer m_SyncTimer

Definition at line 14 of file playerstats.c.

◆ m_System

string m_System = "Stats"

Definition at line 17 of file playerstats.c.