164 {
165#ifdef ENABLE_LOGGING
167 {
168 Debug.
ActionLog(
"STS = " + player.GetSimulationTimeStamp(),
this.ToString() ,
"n/a",
"SetupAction", player.ToString() );
169 }
170#endif
172 action_data.m_Action = this;
173 action_data.m_Player = player;
174 action_data.m_Target = target;
175 action_data.m_MainItem = item;
179 action_data.m_WasExecuted = false;
180 action_data.m_WasActionStarted = false;
181 action_data.m_ReciveEndInput = false;
182
183 ActionReciveData action_recive_data = player.GetActionManager().GetReciveData();
184 if ( action_recive_data )
185 {
187
189 {
190 if ( player.GetItemInHands() != action_data.m_MainItem )
191 {
192 return false;
193 }
194 }
195 }
196
198 return false;
199
200
202 {
204 {
206 return false;
207 }
208#ifdef ENABLE_LOGGING
210 {
211 for ( int i = 0; i < action_data.m_ReservedInventoryLocations.Count(); i++)
212 {
214 }
215 }
216#endif
217 }
218
219 return true;
220 }
ActionData CreateActionData()
bool InventoryReservation(ActionData action_data)
class ActionData m_RefreshReservationTimerValue
bool MainItemAlwaysInHands()
void ClearInventoryReservationEx(ActionData action_data)
void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
bool Post_SetupAction(ActionData action_data)
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsActionLogEnable()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.