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

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

override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnDebugSpawn ()
 

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

Методы

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
4 {
5 if( !super.CanPutInCargo( parent ) )
6 {
7 return false;
8 }
9
10 return IsEmpty();
11 }
override bool IsEmpty()
Definition FireplaceBase.c:2454
Definition EntityAI.c:95

Перекрестные ссылки IsEmpty().

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate
14 {
15 if( !super.CanReceiveAttachment( attachment, slotId ) )
16 {
17 return false;
18 }
19
20 return !GetInventory().IsInCargo();
21 }

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprivate
26 {
28 if ( Class.CastTo(entity, this) )
29 {
30 entity.GetInventory().CreateInInventory( "NylonKnifeSheath" );
31 entity.GetInventory().CreateInInventory( "PlateCarrierHolster" );
32 entity.GetInventory().CreateInInventory( "Canteen" );
33 }
34 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().


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