DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл PlayerStatsPCO.c

См. исходные тексты.

Структуры данных

class  PCOHandlerStats
 
class  PlayerStatsPCO_Base
 
class  PlayerStatsPCO_v115
 

Перечисления

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

Функции

void PlayerStatsPCO_Base ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
void SetPlayer (Man player)
 
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 ()
 
void OnRPC (ParamsReadContext ctx)
 
void OnAfterStoreLoad ()
 

Переменные

class PCOHandlerStats m_Player
 
ref array< ref PlayerStatBasem_PlayerStats = new array<ref PlayerStatBase>
 

Перечисления

◆ EPlayerStats_current

◆ EPlayerStats_v100

Элементы перечислений
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
STOMACH_SOLID 
STOMACH_ENERGY 
STOMACH_WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
136{
138 TREMOR,
139 WET,
140 ENERGY,
141 WATER,
145 DIET,
146 STAMINA,
147 SPECIALTY,
148 BLOODTYPE,
149};
@ ENERGY
Definition PlayerStatsPCO.c:140
@ BLOODTYPE
Definition PlayerStatsPCO.c:148
@ STAMINA
Definition PlayerStatsPCO.c:146
@ DIET
Definition PlayerStatsPCO.c:145
@ HEATCOMFORT
Definition PlayerStatsPCO.c:137
@ TREMOR
Definition PlayerStatsPCO.c:138
@ SPECIALTY
Definition PlayerStatsPCO.c:147
@ WET
Definition PlayerStatsPCO.c:139
@ WATER
Definition PlayerStatsPCO.c:141
@ STOMACH_SOLID
Definition PlayerStatsPCO.c:142
@ STOMACH_ENERGY
Definition PlayerStatsPCO.c:143
@ STOMACH_WATER
Definition PlayerStatsPCO.c:144

◆ EPlayerStats_v101

Элементы перечислений
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
STOMACH_SOLID 
STOMACH_ENERGY 
STOMACH_WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 
187{
189 TREMOR,
190 WET,
191 ENERGY,
192 WATER,
196 DIET,
197 STAMINA,
198 SPECIALTY,
199 BLOODTYPE,
200 TOXICITY,
201};
@ TOXICITY
Definition PlayerStatsPCO.c:200

◆ EPlayerStats_v106

Элементы перечислений
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 
231{
233 TREMOR,
234 WET,
235 ENERGY,
236 WATER,
237 DIET,
238 STAMINA,
239 SPECIALTY,
240 BLOODTYPE,
241 TOXICITY,
242};

◆ EPlayerStats_v115

Элементы перечислений
HEATCOMFORT 
TREMOR 
WET 
ENERGY 
WATER 
DIET 
STAMINA 
SPECIALTY 
BLOODTYPE 
TOXICITY 
HEATBUFFER 
268{
269 HEATCOMFORT = 0,
270 TREMOR = 1,
271 WET = 2,
272 ENERGY = 3,
273 WATER,
274 DIET,
275 STAMINA,
276 SPECIALTY,
277 BLOODTYPE,
278 TOXICITY,
280};
@ HEATBUFFER
Definition PlayerStatsPCO.c:279

Функции

◆ Get()

array< ref PlayerStatBase > Get ( )
109 {
110 return m_PlayerStats;
111 }
ref array< ref PlayerStatBase > m_PlayerStats
Definition PlayerStatsPCO.c:77

Перекрестные ссылки m_PlayerStats.

◆ GetStatObject()

PlayerStatBase GetStatObject ( int id)
80 {
81 return m_PlayerStats.Get(id);
82 }

Перекрестные ссылки m_PlayerStats.

◆ GetVersion()

int GetVersion ( )
73 {
74 return -1;
75 }

◆ Init()

void Init ( )

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

pre-init arrays

123 {
124 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/dialog_queue_position.layout");
125 m_HintPanel = new UiHintPanelLoading(layoutRoot.FindAnyWidget("hint_frame0"));
126 m_txtPosition = TextWidget.Cast(layoutRoot.FindAnyWidget("txtPosition"));
127 m_txtNote = TextWidget.Cast(layoutRoot.FindAnyWidget("txtNote"));
128 m_btnLeave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btnLeave"));
129 m_txtNote.Show(true);
130 layoutRoot.FindAnyWidget("notification_root").Show(false);
131
132 #ifdef PLATFORM_CONSOLE
133 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
134 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
136 #ifdef PLATFORM_XBOX
137 #ifdef BUILD_EXPERIMENTAL
138 layoutRoot.FindAnyWidget("notification_root").Show(true);
139 #endif
140 #endif
141 #endif
142
143 return layoutRoot;
144 }
ref UiHintPanelLoading m_HintPanel
Definition DayZGame.c:701
ButtonWidget m_btnLeave
Definition DayZGame.c:109
class LoginScreenBase extends UIScriptedMenu m_txtPosition
TextWidget m_txtNote
Definition DayZGame.c:108
Definition InputUtils.c:2
static const float ICON_SCALE_TOOLBAR
Definition InputUtils.c:15
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition InputUtils.c:167
Definition EntityAI.c:95
Definition gameplay.c:316
Definition EnWidgets.c:220
proto native CGame GetGame()

◆ OnAfterStoreLoad()

void OnAfterStoreLoad ( )
126 {
129 }
void OnAfterStoreLoad()
Definition PlayerStatsPCO.c:125
Definition PlayerStatBase.c:2

Перекрестные ссылки m_PlayerStats.

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)
120 {
123 }
void OnRPC(ParamsReadContext ctx)
Definition PlayerStatsPCO.c:119

Перекрестные ссылки m_PlayerStats.

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext ctx)
98 {
100 {
101 if (!playerStat.OnStoreLoad(ctx))
102 return false;
103 }
104
105 return true;
106 }

Перекрестные ссылки m_PlayerStats.

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
92 {
95 }
void OnStoreSave(ParamsWriteContext ctx)
Definition PlayerStatsPCO.c:91

Перекрестные ссылки m_PlayerStats.

◆ PlayerStatsPCO_Base()

void PlayerStatsPCO_Base ( )
62 {
63 }

◆ RegisterStat()

void RegisterStat ( int id,
PlayerStatBase stat )
85 {
86 m_PlayerStats.InsertAt(stat, id);
87 stat.SetPlayer(m_Player);
88 stat.Init(id);
89 }
class PCOHandlerStats m_Player

Перекрестные ссылки m_Player и m_PlayerStats.

Используется в PlayerStatsPCO_Base::Init().

◆ ResetAllStats()

void ResetAllStats ( )
114 {
115 m_PlayerStats.Clear();
116 Init();
117 }
void Init()
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside o...
Definition DayZGame.c:122

Перекрестные ссылки PlayerStatsPCO_Base::Init() и m_PlayerStats.

◆ SetPlayer()

void SetPlayer ( Man player)
68 {
70 }

Перекрестные ссылки m_Player.

Переменные

◆ m_Player

Используется в RegisterStat() и SetPlayer().

◆ m_PlayerStats