DayZ 1.24
Loading...
Searching...
No Matches
BloodContainerBase.c
Go to the documentation of this file.
2{
3 private bool m_IsBloodTypeVisible = false;
4
6 {
7 RegisterNetSyncVariableBool("m_IsBloodTypeVisible");
8 }
9
10 override bool IsBloodContainer()
11 {
12 return true;
13 }
14
16 {
17 m_IsBloodTypeVisible = visible;
18 SetSynchDirty();
19 }
20
22 {
23 return m_IsBloodTypeVisible;
24 }
25
27 {
28 super.OnStoreSave(ctx);
29
30 ctx.Write(m_IsBloodTypeVisible);
31 }
32
33 override bool OnStoreLoad(ParamsReadContext ctx, int version)
34 {
35 if (!super.OnStoreLoad(ctx, version))
36 return false;
37
38 bool is_blood_type_visible = false;
40 SetBloodTypeVisible(is_blood_type_visible);
41
42 return true;
43 }
44}
override bool OnStoreLoad(ParamsReadContext ctx, int version)
void BloodContainerBase()
override void OnStoreSave(ParamsWriteContext ctx)
bool GetBloodTypeVisible()
void SetBloodTypeVisible(bool visible)
override bool IsBloodContainer()
Serialization general interface. Serializer API works with:
Definition Serializer.c:56