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

◆ RefreshReservations()

void RefreshReservations ( ActionData action_data)
protected

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

1145 {
1146 if (action_data.m_Player.GetInstanceType() != DayZPlayerInstanceType.INSTANCETYPE_SERVER)
1147 {
1148#ifdef ENABLE_LOGGING
1150 {
1151 Debug.ActionLog("STS = " + action_data.m_Player.GetSimulationTimeStamp(), this.ToString() , "n/a", "RefreshReservations", action_data.m_Player.ToString() );
1152 }
1153#endif
1154 if (action_data.m_ReservedInventoryLocations)
1155 {
1157 for (int i = 0; i < action_data.m_ReservedInventoryLocations.Count(); i++)
1158 {
1159 il = action_data.m_ReservedInventoryLocations.Get(i);
1160 EntityAI entity = il.GetItem();
1161 action_data.m_Player.GetInventory().ExtendInventoryReservationEx(il.GetItem() , il, 10000);
1162 }
1163 }
1164 }
1165 }
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.

Используется в OnUpdateClient().