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

actions Подробнее...

Закрытые члены

void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 
override void Action (HandEventBase e)
 

Подробное описание

actions

represents action executed on transition just between OnExit from old state and OnEntry to new state

Методы

◆ Action() [1/12]

void Action ( HandEventBase e)
inlineprivate
11{ }

◆ Action() [2/12]

override void Action ( HandEventBase e)
inlineprivate
18 {
19 #ifdef ENABLE_LOGGING
21 {
22 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionCreated", e.m_Player.ToString() );
23 }
24 #endif
25
26 e.m_Player.OnItemInHandsChanged();
27 }
Definition Debug.c:14
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:161
Definition Debug.c:600
static bool IsInventoryHFSMLogEnable()
Definition Debug.c:674
Definition EntityAI.c:95

Перекрестные ссылки Debug::InventoryHFSMLog() и LogManager::IsInventoryHFSMLogEnable().

◆ Action() [3/12]

override void Action ( HandEventBase e)
inlineprivate
33 {
34 #ifdef ENABLE_LOGGING
36 {
37 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionTake", e.m_Player.ToString() );
38 }
39 #endif
40
41 GameInventory.LocationSyncMoveEntity(e.GetSrc(), e.GetDst());
42 e.m_Player.OnItemInHandsChanged();
43 }
script counterpart to engine's class Inventory
Definition Inventory.c:79
static proto native bool LocationSyncMoveEntity(notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc)
synchronously removes item from current inventory location and adds it to destination no anims involv...

Перекрестные ссылки Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSyncMoveEntity().

◆ Action() [4/12]

override void Action ( HandEventBase e)
inlineprivate
49 {
50 #ifdef ENABLE_LOGGING
52 {
53 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionDrop", e.m_Player.ToString() );
54 }
55 #endif
56
57 GameInventory.LocationSyncMoveEntity(e.GetSrc(), e.GetDst());
58 e.m_Player.OnItemInHandsChanged();
59 }

Перекрестные ссылки Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSyncMoveEntity().

◆ Action() [5/12]

override void Action ( HandEventBase e)
inlineprivate
65 {
66 #ifdef ENABLE_LOGGING
68 {
69 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionThrow", e.m_Player.ToString() );
70 }
71 #endif
72 HandEventThrow throwEvent = HandEventThrow.Cast(e);
73
74 GameInventory.LocationSyncMoveEntity(e.GetSrc(), e.GetDst());
75
76 DayZPlayer player = DayZPlayer.Cast(e.m_Player);
77 if ( player.GetInstanceType() != DayZPlayerInstanceType.INSTANCETYPE_REMOTE )
78 {
79 InventoryItem item = InventoryItem.Cast(e.GetSrcEntity());
80 if( item )
81 item.ThrowPhysically(player, throwEvent.GetForce());
82 else
83 Error("[hndfsm] HandActionThrow - src entity null!");
84 }
85
86 player.OnItemInHandsChanged();
87 }
Definition DayZPlayerImplement.c:111
Definition ItemBase.c:15
DayZPlayerInstanceType
defined in C++
Definition dayzplayer.c:1068
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки Error(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSyncMoveEntity().

◆ Action() [6/12]

override void Action ( HandEventBase e)
inlineprivate
93 {
94 #ifdef ENABLE_LOGGING
96 {
97 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionMoveTo", e.m_Player.ToString() );
98 }
99 #endif
100
101 HandEventMoveTo es = HandEventMoveTo.Cast(e);
102 if (es)
103 {
104 GameInventory.LocationSyncMoveEntity(e.GetSrc(), es.m_Dst);
105 e.m_Player.OnItemInHandsChanged();
106 }
107 else
108 Error("[hndfsm] HandActionMoveTo - this is no HandEventMoveTo");
109 }

Перекрестные ссылки Error(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSyncMoveEntity().

◆ Action() [7/12]

override void Action ( HandEventBase e)
inlineprivate
115 {
116 #ifdef ENABLE_LOGGING
118 {
119 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionDestroy", e.m_Player.ToString() );
120 }
121 #endif
122
123 GetGame().ObjectDelete(e.GetSrcEntity());
124 e.m_Player.OnItemInHandsChanged();
125 }
proto native CGame GetGame()

Перекрестные ссылки GetGame(), Debug::InventoryHFSMLog() и LogManager::IsInventoryHFSMLogEnable().

◆ Action() [8/12]

override void Action ( HandEventBase e)
inlineprivate
131 {
132 #ifdef ENABLE_LOGGING
134 {
135 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionDestroyed", e.m_Player.ToString() );
136 }
137 #endif
138 e.m_Player.OnItemInHandsChanged();
139 }

Перекрестные ссылки Debug::InventoryHFSMLog() и LogManager::IsInventoryHFSMLogEnable().

◆ Action() [9/12]

override void Action ( HandEventBase e)
inlineprivate
145 {
146 #ifdef ENABLE_LOGGING
148 {
149 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionDestroyAndReplaceWithNew", e.m_Player.ToString() );
150 }
151 #endif
152 Man player = e.m_Player;
153 EntityAI itemInHands = player.GetHumanInventory().GetEntityInHands();
154
156 if (itemInHands.GetInventory().GetCurrentInventoryLocation(src))
157 {
159 if (edr)
160 {
161 edr.m_Lambda.Execute();
162 return;
163 }
164 else
165 Error("[hndfsm] HandActionDestroyAndReplaceWithNew - not a HandEventDestroyAndReplaceWithNew event");
166 }
167 else
168 Error("[hndfsm] HandActionDestroyAndReplaceWithNew - itemInHands has no InventoryLocation");
169 }
Definition Building.c:6
Definition Hand_Events.c:773
InventoryLocation.
Definition InventoryLocation.c:29

Перекрестные ссылки Error(), Debug::InventoryHFSMLog() и LogManager::IsInventoryHFSMLogEnable().

◆ Action() [10/12]

override void Action ( HandEventBase e)
inlineprivate
183 {
184 #ifdef ENABLE_LOGGING
186 {
187 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionReplaced", e.m_Player.ToString() );
188 }
189 #endif
190 Man player = e.m_Player;
191
192 player.OnItemInHandsChanged();
193 }

Перекрестные ссылки Debug::InventoryHFSMLog() и LogManager::IsInventoryHFSMLogEnable().

◆ Action() [11/12]

override void Action ( HandEventBase e)
inlineprivate
199 {
200 #ifdef ENABLE_LOGGING
202 {
203 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionSwap", e.m_Player.ToString() );
204 }
205 #endif
207 if (es)
208 {
209 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
210 e.m_Player.OnItemInHandsChanged();
211 }
212 else
213 Error("[hndfsm] HandActionSwap - this is no HandEventSwap");
214 }
static proto native bool LocationSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
swaps two entities
Definition Hand_Events.c:679

Перекрестные ссылки Error(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSwap().

◆ Action() [12/12]

override void Action ( HandEventBase e)
inlineprivate
220 {
221 #ifdef ENABLE_LOGGING
223 {
224 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "HandActionForceSwap", e.m_Player.ToString() );
225 }
226 #endif
227 HandEventForceSwap es = HandEventForceSwap.Cast(e);
228 if (es)
229 {
230 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
231 e.m_Player.OnItemInHandsChanged();
232 }
233 else
234 Error("[hndfsm] HandActionForceSwap - this is no HandEventForceSwap");
235 }

Перекрестные ссылки Error(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable() и GameInventory::LocationSwap().


Объявления и описания членов класса находятся в файле: