Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
inventoryjunctureswapvalidation.c
Go to the documentation of this file.
1class InventoryJunctureSwapValidation
2{
3 bool m_Success;
4 bool m_SkippedSwap;
5
6 ref InventoryLocation m_Src1;
7 ref InventoryLocation m_Src2;
8
9 EntityAI m_SrcItem1;
10 EntityAI m_SrcItem2;
11
12 ref InventoryLocation m_Dst1;
13 ref InventoryLocation m_Dst2;
14
15 EntityAI m_DstItem1;
16 EntityAI m_DstItem2;
17
18 void InventoryJunctureSwapValidation(Serializer ctx)
19 {
20 m_Success = true;
21 m_SkippedSwap = false;
22
23 m_Src1 = new InventoryLocation;
24 m_Src2 = new InventoryLocation;
25
26 m_Dst1 = new InventoryLocation;
27 m_Dst2 = new InventoryLocation;
28
29 m_Src1.ReadFromContext(ctx);
30 m_Src2.ReadFromContext(ctx);
31 m_Dst1.ReadFromContext(ctx);
32 m_Dst2.ReadFromContext(ctx);
33 ctx.Read(m_SkippedSwap);
34
35 m_SrcItem1 = m_Src1.GetItem();
36 m_SrcItem2 = m_Src2.GetItem();
37
38 m_DstItem1 = m_Dst1.GetItem();
39 m_DstItem2 = m_Dst2.GetItem();
40 }
41}
InventoryLocation.
Serialization general interface. Serializer API works with:
Definition serializer.c:56