DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PluginInventoryDebug.c
См. документацию.
1// *************************************************************************************
2// ! PluginInventoryDebug
3// *************************************************************************************
4#ifdef DIAG_DEVELOPER
5class PluginInventoryDebug extends PluginBase
6{
7 // Inventory movement is not send to server
8 bool m_IsOnlyLocalMoveEnable = false;
9 // For hand manipulation client wait for ack from server
10 bool m_IsHandAckEnable = false;
11 // Repair desync system, if disable server will not send or respond on repair request
12 bool m_IsDesyncRepairEnable = true;
13
14 //---------------------------------------------------
15 // gui stuff
16
17 void PluginInventoryDebug()
18 {
19 m_IsOnlyLocalMoveEnable = false;
20 m_IsHandAckEnable = false;
21 m_IsDesyncRepairEnable = true;
22 }
23
24 bool IsLocalOnlyMoveEnable()
25 {
26 return m_IsOnlyLocalMoveEnable;
27 }
28
29 void SetLocalOnlyMoveEnable(bool enable)
30 {
31 m_IsOnlyLocalMoveEnable = enable;
32 }
33
34 void SetHandAckEnable(bool enable)
35 {
36 m_IsHandAckEnable = enable;
37 InventoryDebug.SetHandAckEnable(enable);
38 }
39
40 bool IsHandAckEnable()
41 {
42 return m_IsHandAckEnable;
43 }
44
45 void SetDesyncRepairEnable(bool enable)
46 {
47 m_IsDesyncRepairEnable = enable;
48 }
49
50 bool IsDesyncRepairEnable()
51 {
52 return m_IsDesyncRepairEnable;
53 }
54}
55#endif
Plugin interface for controlling of agent pool system.
Определения PluginBase.c:2