◆ GetRandomCharacterType()
string GetRandomCharacterType |
( |
| ) |
|
|
inlineprivate |
25 {
28
29 Debug.
Log(
"No characterTypes defined. Falling back to 'default' character type, or random, if undefined",
"n/a",
"n/a",
"PlayerSpawnPreset");
30 return string.Empty;
31 }
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:136
ref array< string > characterTypes
Definition CfgPlayerSpawnDataJson.c:20
Перекрестные ссылки characterTypes и Debug::Log().
◆ HasAttachmentSlotSetsDefined()
bool HasAttachmentSlotSetsDefined |
( |
| ) |
|
|
inlineprivate |
preset might be valid even with no attachmentSlotItemSets configured, checked separately
49 {
51 }
ref array< ref PlayerSpawnPresetSlotData > attachmentSlotItemSets
Definition CfgPlayerSpawnDataJson.c:21
Перекрестные ссылки attachmentSlotItemSets.
◆ HasDiscreteUnsortedItemSetsDefined()
bool HasDiscreteUnsortedItemSetsDefined |
( |
| ) |
|
|
inlineprivate |
preset might be valid even with no unsorted item sets configured, checked separately
55 {
57 }
ref array< ref PlayerSpawnPresetDiscreteCargoSetData > discreteUnsortedItemSets
Definition CfgPlayerSpawnDataJson.c:22
Перекрестные ссылки discreteUnsortedItemSets.
◆ IsValid()
34 {
36 return false;
37
39 {
40 Debug.
Log(
"Invalid spawn weight, skipping preset: " +
name,
"n/a",
"Validation",
"PlayerSpawnPreset");
41 return false;
42 }
43
44 return true;
45 }
int spawnWeight
Definition CfgPlayerSpawnDataJson.c:18
string name
Definition CfgPlayerSpawnDataJson.c:19
Перекрестные ссылки Debug::Log(), name и spawnWeight.
◆ attachmentSlotItemSets
◆ characterTypes
◆ discreteUnsortedItemSets
◆ name
◆ spawnWeight
Объявления и описания членов класса находятся в файле: