Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
playerstatspco.c File Reference

Go to the source code of this file.

Data Structures

class  PCOHandlerStats
 
class  PlayerStatsPCO_Base
 
class  PlayerStatsPCO_Base
 
class  PlayerStatsPCO_Base
 
class  PlayerStatsPCO_Base
 
class  PlayerStatsPCO_v115
 

Enumerations

enum  EPlayerStats_v100 {
  HEATCOMFORT, TREMOR, WET, ENERGY,
  WATER, STOMACH_SOLID, STOMACH_ENERGY, STOMACH_WATER,
  DIET, STAMINA, SPECIALTY, BLOODTYPE
}
 
enum  EPlayerStats_v101 {
  HEATCOMFORT, TREMOR, WET, ENERGY,
  WATER, STOMACH_SOLID, STOMACH_ENERGY, STOMACH_WATER,
  DIET, STAMINA, SPECIALTY, BLOODTYPE,
  TOXICITY
}
 
enum  EPlayerStats_v106 {
  HEATCOMFORT, TREMOR, WET, ENERGY,
  WATER, DIET, STAMINA, SPECIALTY,
  BLOODTYPE, TOXICITY
}
 
enum  EPlayerStats_v115 {
  HEATCOMFORT, TREMOR, WET, ENERGY,
  WATER, DIET, STAMINA, SPECIALTY,
  BLOODTYPE, TOXICITY, HEATBUFFER
}
 
enum  EPlayerStats_current : EPlayerStats_v115
 

Functions

void PCOHandlerStats ()
 
void RegisterPCO (PlayerStatsPCO_Base pco)
 
PlayerStatsPCO_Base GetPCO (int version=-1)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) More...
 
int GetVersion ()
 
PlayerStatBase GetStatObject (int id)
 
void RegisterStat (int id, PlayerStatBase stat)
 
void OnStoreSave (ParamsWriteContext ctx)
 
bool OnStoreLoad (ParamsReadContext ctx)
 
array< ref PlayerStatBaseGet ()
 
void ResetAllStats ()
 

Variables

ref map< int, ref PlayerStatsPCO_Basem_PCOs = new map<int, ref PlayerStatsPCO_Base>
 
int m_HighestVersion
 
ref array< ref PlayerStatBasem_PlayerStats = new array<ref PlayerStatBase>
 
enum EPlayerStats_v100 PlayerStatsPCO_Base
 

Enumeration Type Documentation

◆ EPlayerStats_current

Definition at line 293 of file playerstatspco.c.

◆ EPlayerStats_v100

Enumerator
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
STOMACH_SOLID 
STOMACH_ENERGY 
STOMACH_WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 

Definition at line 118 of file playerstatspco.c.

◆ EPlayerStats_v101

Enumerator
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
STOMACH_SOLID 
STOMACH_ENERGY 
STOMACH_WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 

Definition at line 169 of file playerstatspco.c.

◆ EPlayerStats_v106

Enumerator
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 

Definition at line 213 of file playerstatspco.c.

◆ EPlayerStats_v115

Enumerator
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 
HEATBUFFER 

Definition at line 250 of file playerstatspco.c.

Function Documentation

◆ Get()

array<ref PlayerStatBase> Get ( )

Definition at line 103 of file playerstatspco.c.

◆ GetPCO()

PlayerStatsPCO_Base PlayerStatsPCO_Base::GetPCO ( int  version = -1)

Definition at line 24 of file playerstatspco.c.

◆ GetStatObject()

PlayerStatBase GetStatObject ( int  id)

Definition at line 72 of file playerstatspco.c.

◆ GetVersion()

int GetVersion ( )

Definition at line 65 of file playerstatspco.c.

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

pre-init arrays

Definition at line 46 of file uihintpanel.c.

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext  ctx)

Definition at line 91 of file playerstatspco.c.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 83 of file playerstatspco.c.

◆ PCOHandlerStats()

void PlayerStatsPCO_Base::PCOHandlerStats ( )

Definition at line 5 of file playerstatspco.c.

◆ RegisterPCO()

void PlayerStatsPCO_Base::RegisterPCO ( PlayerStatsPCO_Base  pco)

Definition at line 12 of file playerstatspco.c.

◆ RegisterStat()

void RegisterStat ( int  id,
PlayerStatBase  stat 
)

Definition at line 77 of file playerstatspco.c.

◆ ResetAllStats()

void ResetAllStats ( )

Definition at line 108 of file playerstatspco.c.

Variable Documentation

◆ m_HighestVersion

int m_HighestVersion

Definition at line 3 of file playerstatspco.c.

◆ m_PCOs

ref map<int, ref PlayerStatsPCO_Base> m_PCOs = new map<int, ref PlayerStatsPCO_Base>

Definition at line 2 of file playerstatspco.c.

◆ m_PlayerStats

ref array<ref PlayerStatBase> m_PlayerStats = new array<ref PlayerStatBase>

Definition at line 70 of file playerstatspco.c.

◆ PlayerStatsPCO_Base

Definition at line 58 of file playerstatspco.c.