Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PlayerSpawnPreset Class Reference
Inheritance diagram for PlayerSpawnPreset:
PlayerSpawnJsonDataBase

Private Member Functions

string GetRandomCharacterType ()
bool HasAttachmentSlotSetsDefined ()
 preset might be valid even with no attachmentSlotItemSets configured, checked separately
bool HasDiscreteUnsortedItemSetsDefined ()
 preset might be valid even with no unsorted item sets configured, checked separately
override bool IsValid ()

Private Attributes

ref array< ref PlayerSpawnPresetSlotData > attachmentSlotItemSets
ref array< stringcharacterTypes
ref array< ref PlayerSpawnPresetDiscreteCargoSetData > discreteUnsortedItemSets
string name
int spawnWeight

Detailed Description

Definition at line 16 of file cfgplayerspawndatajson.c.

Member Function Documentation

◆ GetRandomCharacterType()

string GetRandomCharacterType ( )
inlineprivate

Definition at line 24 of file cfgplayerspawndatajson.c.

References characterTypes, and Debug::Log().

Referenced by MissionBase::OnClientNewEvent().

◆ HasAttachmentSlotSetsDefined()

bool HasAttachmentSlotSetsDefined ( )
inlineprivate

preset might be valid even with no attachmentSlotItemSets configured, checked separately

Definition at line 48 of file cfgplayerspawndatajson.c.

References attachmentSlotItemSets.

Referenced by PlayerSpawnHandler::ProcessSlotsEquipment().

◆ HasDiscreteUnsortedItemSetsDefined()

bool HasDiscreteUnsortedItemSetsDefined ( )
inlineprivate

preset might be valid even with no unsorted item sets configured, checked separately

Definition at line 54 of file cfgplayerspawndatajson.c.

References discreteUnsortedItemSets.

Referenced by PlayerSpawnHandler::ProcessCargoEquipment().

◆ IsValid()

Field Documentation

◆ attachmentSlotItemSets

ref array<ref PlayerSpawnPresetSlotData> attachmentSlotItemSets
private

◆ characterTypes

ref array<string> characterTypes
private

Definition at line 20 of file cfgplayerspawndatajson.c.

Referenced by GetRandomCharacterType().

◆ discreteUnsortedItemSets

ref array<ref PlayerSpawnPresetDiscreteCargoSetData> discreteUnsortedItemSets
private

◆ name

string name
private

◆ spawnWeight

int spawnWeight
private

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