3161 {
3164 if (!swapValidation)
3165 {
3166 return false;
3167 }
3168
3169#ifdef ENABLE_LOGGING
3171 {
3173 }
3174#endif
3177
3179 {
3181 return true;
3182 }
3183
3186
3187
3189 {
3190#ifdef ENABLE_LOGGING
3192 {
3193 Debug.
InventoryMoveLog(
"Failed - !SwapCheckExclusionMaskLocal - condition failed locally",
"SWAP" ,
"n/a",
"ExecuteSwapCommandClient", playerOwner.ToString() );
3194 }
3195#endif
3196 return false;
3197 }
3198
3200 {
3201#ifdef ENABLE_LOGGING
3203 {
3204 Debug.
InventoryMoveLog(
"Failed - !CanForceSwapEntitiesEx",
"SWAP" ,
"n/a",
"ExecuteSwapCommandClient", playerOwner.ToString() );
3205 }
3206#endif
3207 return false;
3208 }
3209
3210#ifdef ENABLE_LOGGING
3212 {
3213 Debug.
InventoryMoveLog(
"Success - item swap",
"SWAP" ,
"n/a",
"ExecuteSwapCommandClient", playerOwner.ToString() );
3214 }
3215#endif
3216
3218 {
3219 bool isNotSkipped = LocationSwap(swapValidation.
m_Src1, swapValidation.
m_Src2, swapValidation.
m_Dst1, swapValidation.
m_Dst2);
3222 }
3223
3224 return true;
3225 }
void ClearInventoryReservationEx(ActionData action_data)
bool SwapCheckExclusionMaskLocal(notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
Local, checks only stuff that is in guaranteed sync.
void RemoveMovableOverride(EntityAI item)
DayZPlayer GetDayZPlayerOwner()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
script counterpart to engine's class Inventory
ref InventoryLocation m_Src2
ref InventoryLocation m_Src1
ref InventoryLocation m_Dst1
ref InventoryLocation m_Dst2
proto native bool IsValid()
verify current set inventory location
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsInventoryMoveLogEnable()
void Error(string err)
Messagebox with error message.