Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ClothingBase
+ Граф наследования:ClothingBase:

Защищенные члены

void InitGlobalExclusionValues ()
 
void InitGlobalExclusionValues ()
 
void InitGlobalExclusionValues ()
 

Закрытые члены

override bool CanPutAsAttachment (EntityAI parent)
 

Подробное описание

Методы

◆ CanPutAsAttachment()

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 bool headgear_present = false;
7
8 if ( parent.FindAttachmentBySlotName( "Headgear" ) )
9 {
10 headgear_present = parent.FindAttachmentBySlotName( "Headgear" ).ConfigGetBool( "noMask" );
11 }
12
13 if ( ( GetNumberOfItems() == 0 || !parent || parent.IsMan() ) && !headgear_present )
14 {
15 return true;
16 }
17 return false;
18 }
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
Definition ItemBase.c:8106
override bool IsMan()
Definition Man.c:44
Definition EntityAI.c:95

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

◆ InitGlobalExclusionValues() [1/3]

void InitGlobalExclusionValues ( )
inlineprotected
4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

◆ InitGlobalExclusionValues() [2/3]

void InitGlobalExclusionValues ( )
inlineprotected
4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

◆ InitGlobalExclusionValues() [3/3]

void InitGlobalExclusionValues ( )
inlineprotected
4 {
5 super.InitGlobalExclusionValues();
6
7 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_0);
8 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_1);
9 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_MASK_2);
10 }

Объявления и описания членов классов находятся в файлах: