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

◆ CanPutInCargoClothingConditions()

bool Clothing_Base::CanPutInCargoClothingConditions ( EntityAI parent)
inlineprivate

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

39 {
40 bool is_hidden_stash_exception = false;
41
42 if ( parent.IsInherited( UndergroundStash ) )
43 is_hidden_stash_exception = true;
44
45 if ( GetNumberOfItems() == 0 || !parent || parent.IsMan() || is_hidden_stash_exception )
46 {
47 EntityAI cargoParent = parent.GetHierarchyParent();
48 ClothingBase parentClothing = ClothingBase.Cast(parent);
49 if (cargoParent)
50 return !(parent.IsClothing() && cargoParent.IsClothing()) || ( parentClothing && parentClothing.SmershException(cargoParent) );
51
52 return true;
53 }
54
55 return false;
56 }
class LogManager EntityAI
Clothing ClothingBase
Определения Clothing_Base.c:194
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Определения ItemBase.c:8218
override bool IsMan()
Определения Man.c:44

Перекрестные ссылки GetNumberOfItems() и EntityAI::IsMan().

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