DayZ 1.24
Loading...
Searching...
No Matches
PlayerSpawnPresetDiscreteItemSetSlotData Class Reference

one item set for slot More...

Inheritance diagram for PlayerSpawnPresetDiscreteItemSetSlotData:
[legend]
Collaboration diagram for PlayerSpawnPresetDiscreteItemSetSlotData:
[legend]

Private Member Functions

override bool IsValid ()
 
override int GetQuickbarIdx ()
 

Private Attributes

string itemType
 
int quickBarSlot
 

Detailed Description

one item set for slot

Definition at line 145 of file CfgPlayerSpawnDataJson.c.

Member Function Documentation

◆ GetQuickbarIdx()

override int PlayerSpawnPresetDiscreteItemSetSlotData::GetQuickbarIdx ( )
inlineprivate

Definition at line 168 of file CfgPlayerSpawnDataJson.c.

References quickBarSlot.

◆ IsValid()

override bool PlayerSpawnPresetDiscreteItemSetSlotData::IsValid ( )
inlineprivate

Definition at line 150 of file CfgPlayerSpawnDataJson.c.

151 {
152 if (!super.IsValid())
153 return false;
154
155 //empty 'itemType' is valid alternative here
156
157 if (!attributes)
158 {
159 Debug.Log("No attributes defined for a discrete item set!", "n/a", "Validation", "PlayerSpawnPresetDiscreteItemSetSlotData");
160 return false;
161 }
162
163 //unable to verify any of the other integers, since they always default to '0'. Needs to be configured carefully!
164
165 return true;
166 }
Definition Debug.c:14
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition Debug.c:133

References Debug::Log().

Member Data Documentation

◆ itemType

string PlayerSpawnPresetDiscreteItemSetSlotData::itemType
private

Definition at line 147 of file CfgPlayerSpawnDataJson.c.

◆ quickBarSlot

int PlayerSpawnPresetDiscreteItemSetSlotData::quickBarSlot
private

Definition at line 148 of file CfgPlayerSpawnDataJson.c.

Referenced by GetQuickbarIdx().


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