Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
15 void SetBloodTypeVisible( bool visible )
16 {
17 m_IsBloodTypeVisible = visible;
18 SetSynchDirty();
19 }
20
22 {
24 }
25
26 override void OnStoreSave( ParamsWriteContext ctx )
27 {
28 super.OnStoreSave(ctx);
29
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;
39 ctx.Read( is_blood_type_visible );
40 SetBloodTypeVisible( is_blood_type_visible );
41
42 return true;
43 }
44}
override void OnStoreSave(ParamsWriteContext ctx)
bool GetBloodTypeVisible()
bool m_IsBloodTypeVisible
void SetBloodTypeVisible(bool visible)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override bool IsBloodContainer()
void BloodContainerBase()
proto bool Write(void value_out)
proto bool Read(void value_in)
Serializer ParamsReadContext
Definition gameplay.c:15
Serializer ParamsWriteContext
Definition gameplay.c:16