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

◆ ClearActionJuncture()

void ClearActionJuncture ( ActionData action_data)
protected

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

1208 {
1209 if (action_data.m_Player.GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER)
1210 {
1211#ifdef ENABLE_LOGGING
1213 {
1214 Debug.ActionLog("STS = " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString() , "n/a", "ClearActionJuncture", action_data.m_Player.ToString() );
1215 }
1216#endif
1217 if (action_data.m_ReservedInventoryLocations)
1218 {
1220 for ( int i = 0; i < action_data.m_ReservedInventoryLocations.Count(); i++)
1221 {
1222 il = action_data.m_ReservedInventoryLocations.Get(i);
1223 EntityAI entity = il.GetItem();
1224 if (entity)
1225 {
1226 g_Game.ClearJunctureEx(action_data.m_Player, entity);
1227 }
1228 }
1229
1230 action_data.m_ReservedInventoryLocations.Clear();
1231 }
1232 }
1233 }
DayZGame g_Game
Определения DayZGame.c:4074
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(), g_Game, InventoryLocation::GetItem(), LogManager::IsActionLogEnable(), ActionData::m_Player и ActionData::m_ReservedInventoryLocations.

Используется в ActionDeployBase::AddActionJuncture(), ActionSwitchSeats::AddActionJuncture(), FirearmActionBase::AddActionJuncture(), OnEnd(), ActionDetachBattery::OnExecute(), ActionDetachFromTarget::OnExecute(), ActionTakeArrow::OnExecute(), ActionTakeArrowToHands::OnExecute(), ActionTakeHybridAttachment::OnExecute(), ActionTakeHybridAttachmentToHands::OnExecute(), ActionTakeItem::OnExecute(), ActionTakeItemToHands::OnExecute(), ActionTakeMaterialToHands::OnExecute(), OnExecute(), ActionAttachOnSelection::OnExecuteServer(), ActionAttachPowerSourceToPanel::OnExecuteServer(), ActionAttachToConstruction::OnExecuteServer(), ActionAttachWithSwitch::OnExecuteServer(), ActionRepositionPluggedItem::OnExecuteServer(), OnExecuteServer(), ActionDeployBase::OnFinishProgressServer(), ActionDigInStash::OnFinishProgressServer(), ActionPackGift::OnFinishProgressServer(), ActionWorldCraft::OnFinishProgressServer(), OnFinishProgressServer(), ActionExtinquishTorchVideo::OnStartServer(), ActionLightTorchVideo::OnStartServer() и ActionCombinationLockUnlock::TryUnlockLock().