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

◆ InventoryReservation()

override bool ActionRemoveSeed::InventoryReservation ( ActionData action_data)
inlineprivate

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

64 {
65 bool success = true;
66
67 InventoryLocation il = new InventoryLocation;
68
69 if ( m_Seed )
70 {
71 action_data.m_Player.GetInventory().FindFreeLocationFor( m_Seed , FindInventoryLocationType.ANY, il );
72 if ( action_data.m_Player.GetInventory().HasInventoryReservation( m_Seed, il ) )
73 {
74 success = false;
75 }
76 else
77 {
78 action_data.m_Player.GetInventory().AddInventoryReservationEx( m_Seed, il, GameInventory.c_InventoryReservationTimeoutMS );
79 }
80 }
81
82 if ( success )
83 {
84 if ( il )
85 action_data.m_ReservedInventoryLocations.Insert( il );
86 }
87
88 return success;
89 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
PlayerBase m_Player
Определения ActionBase.c:40
ref array< ref InventoryLocation > m_ReservedInventoryLocations
Определения ActionBase.c:42
SeedBase m_Seed
Определения ActionRemoveSeed.c:3

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutMS, ActionData::m_Player, ActionData::m_ReservedInventoryLocations и m_Seed.