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

◆ ClearInventoryReservationEx()

void ClearInventoryReservationEx ( ActionData action_data)
protected

См. определение в файле ActionBase.c строка 1120

1121 {
1122 if (action_data.m_Player.GetInstanceType() != DayZPlayerInstanceType.INSTANCETYPE_SERVER)
1123 {
1124#ifdef ENABLE_LOGGING
1126 {
1127 Debug.ActionLog("STS = " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString() , "n/a", "ClearInventoryReservationEx", action_data.m_Player.ToString() );
1128 }
1129#endif
1130 if (action_data.m_ReservedInventoryLocations)
1131 {
1133 for ( int i = 0; i < action_data.m_ReservedInventoryLocations.Count(); i++)
1134 {
1135 il = action_data.m_ReservedInventoryLocations.Get(i);
1136 action_data.m_Player.GetInventory().ClearInventoryReservationEx( il.GetItem() , il );
1137 }
1138
1139 action_data.m_ReservedInventoryLocations.Clear();
1140 }
1141 }
1142 }
PlayerBase m_Player
Определения ActionBase.c:40
ref array< ref InventoryLocation > m_ReservedInventoryLocations
Определения ActionBase.c:42
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:188
Определения 3_Game/DayZ/tools/Debug.c:2
proto native EntityAI GetItem()
returns item of current inventory location
InventoryLocation.
Определения InventoryLocation.c:30
static bool IsActionLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:749
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1084

Перекрестные ссылки Debug::ActionLog(), InventoryLocation::GetItem(), LogManager::IsActionLogEnable(), ActionData::m_Player и ActionData::m_ReservedInventoryLocations.

Используется в ExecuteSwapCommandClient(), ExecuteSwapCommandRemote(), ExecuteSyncMoveCommandClient(), ActionDeployHuntingTrap::MoveEntityToFinalPosition(), ActionCollectBloodSelf::OnEndServer(), ActionTakeArrow::OnExecute(), ActionTakeArrowToHands::OnExecute(), ActionTakeHybridAttachment::OnExecute(), ActionTakeItem::OnExecute(), ActionTakeItemToHands::OnExecute(), ActionAttachOnSelection::OnExecuteClient(), ActionAttachPowerSourceToPanel::OnExecuteClient(), ActionAttachToConstruction::OnExecuteClient(), ActionAttachWithSwitch::OnExecuteClient(), ActionCreateIndoorFireplace::OnExecuteClient(), ActionFoldEntityToSlot::OnExecuteClient(), ActionOpen::OnExecuteClient(), ActionRemoveSeed::OnExecuteClient(), ActionRepositionPluggedItem::OnExecuteClient(), ActionUnfoldEntity::OnExecuteClient(), OnExecuteClient(), ActionTakeHybridAttachmentToHands::OnExecuteImpl(), ActionAttachOnSelection::OnExecuteServer(), ActionAttachToConstruction::OnExecuteServer(), ActionAttachWithSwitch::OnExecuteServer(), ActionCreateIndoorFireplace::OnExecuteServer(), ActionCreateIndoorOven::OnExecuteServer(), ActionFoldEntityToSlot::OnExecuteServer(), ActionOpen::OnExecuteServer(), ActionPlaceFireplaceIntoBarrel::OnExecuteServer(), ActionRepositionPluggedItem::OnExecuteServer(), ActionUnfoldEntity::OnExecuteServer(), OnExecuteServer(), OnFinishProgressClient(), ActionBreakLongWoodenStick::OnFinishProgressServer(), ActionDigInStash::OnFinishProgressServer(), ActionPackGift::OnFinishProgressServer(), ActionRestrainSelf::OnFinishProgressServer(), ActionUnrestrainSelf::OnFinishProgressServer(), ActionWorldCraft::OnFinishProgressServer(), OnFinishProgressServer(), OnInventoryJunctureFailureFromServer(), OnStartAnimationLoop(), PerformSwap(), ActionDetachFromTarget::Process(), ActionDetachBattery::ProcessDetach(), SetupAction(), ActionDropItemSimple::Start(), FirearmActionAttachMagazine::Start(), FirearmActionAttachMagazineQuick::Start(), ActionCombinationLockUnlock::TryUnlockLock(), ValidateSwap() и ValidateSyncMove().