DayZ 1.24
Loading...
Searching...
No Matches
HipPack_ColorBase Class Reference
Inheritance diagram for HipPack_ColorBase:
[legend]
Collaboration diagram for HipPack_ColorBase:
[legend]

Private Member Functions

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

Detailed Description

Definition at line 1 of file HipPack_ColorBase.c.

Member Function Documentation

◆ CanPutInCargo()

override bool HipPack_ColorBase::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 3 of file HipPack_ColorBase.c.

4 {
5 if (!super.CanPutInCargo(parent))
6 return false;
7
8 return IsEmpty();
9 }
override bool IsEmpty()

References IsEmpty().

◆ CanReceiveAttachment()

override bool HipPack_ColorBase::CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate

Definition at line 11 of file HipPack_ColorBase.c.

12 {
13 if (!super.CanReceiveAttachment(attachment, slotId))
14 return false;
15
16 return !GetInventory().IsInCargo();
17 }

◆ OnDebugSpawn()

override void HipPack_ColorBase::OnDebugSpawn ( )
inlineprivate

Definition at line 21 of file HipPack_ColorBase.c.

22 {
24 if (Class.CastTo(entity, this))
25 entity.GetInventory().CreateInInventory("Canteen");
26 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().


The documentation for this class was generated from the following file: