DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл CfgPlayerSpawnDataJson.c

См. исходные тексты.

Структуры данных

class  PlayerSpawnJsonDataBase
 
class  PlayerSpawnPreset
 
class  PlayerSpawnPresetItemSetBase
 base for any item set Подробнее...
 
class  PlayerSpawnPresetDiscreteItemSetSlotData
 one item set for slot Подробнее...
 
class  PlayerSpawnPresetComplexChildrenType
 used for specific hierarchical child spawning Подробнее...
 

Функции

bool TranslateAndValidateSlot (EntityAI parent, inout int slotID)
 Translates slot name to match something from both 'CfgSlots' and 'attachments[]' in entity's config.
 
override bool IsValid ()
 slot name validity checked separately
 

Переменные

PlayerSpawnJsonDataBase presets
 
PlayerSpawnPreset slotName
 
ref array< ref PlayerSpawnPresetDiscreteItemSetSlotDatadiscreteItemSets
 
PlayerSpawnPresetItemSetBase spawnWeight
 
PlayerSpawnPresetDiscreteItemSetSlotData name
 one set for cargo
 
PlayerSpawnPresetComplexChildrenType healthMin
 
float healthMax
 
float quantityMin
 
float quantityMax
 

Функции

◆ IsValid()

override bool IsValid ( )

slot name validity checked separately

Checks if the ScriptCaller is valid.

100 {
101 if (!super.IsValid())
102 return false;
103
104 if (discreteItemSets == null || discreteItemSets.Count() < 1)
105 {
106 Debug.Log("discreteItemSets for slot: " + slotName + " undefined","n/a","Validation","PlayerSpawnPresetSlotData");
107 return false;
108 }
109
110 return true;
111 }
ref array< ref PlayerSpawnPresetDiscreteItemSetSlotData > discreteItemSets
Definition CfgPlayerSpawnDataJson.c:63
PlayerSpawnPreset slotName
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:136
Definition EntityAI.c:95

Перекрестные ссылки discreteItemSets, Debug::Log(), slotName и spawnWeight.

◆ TranslateAndValidateSlot()

bool TranslateAndValidateSlot ( EntityAI parent,
inout int slotID )

Translates slot name to match something from both 'CfgSlots' and 'attachments[]' in entity's config.

67 {
68 string tmp = slotName;
69 if (slotName == "shoulderL")
70 {
71 tmp = "Shoulder";
72 }
73 else if (slotName == "shoulderR")
74 {
75 tmp = "Melee";
76 }
77
80 {
81 Debug.Log("Wrong slot name used: " + slotName,"n/a","Validation","PlayerSpawnPresetSlotData");
82 return false;
83 }
84 if (!parent)
85 {
86 Debug.Log("No parent entity found when trying to populate slot: " + slotName,"n/a","Validation","PlayerSpawnPresetSlotData");
87 return false;
88 }
89 if (!parent.GetInventory().HasAttachmentSlot(slotID))
90 {
91 Debug.Log("Slot: " + slotName + " undefined on entity: " + parent.GetType(),"n/a","Validation","PlayerSpawnPresetSlotData");
92 return false;
93 }
94
95 return true;
96 }
provides access to slot configuration
Definition InventorySlots.c:6
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
static proto native bool IsSlotIdValid(int slotId)
verifies existence of the slot id

Перекрестные ссылки InventorySlots::GetSlotIdFromString(), InventorySlots::IsSlotIdValid(), Debug::Log() и slotName.

Переменные

◆ discreteItemSets

Используется в IsValid().

◆ healthMax

float healthMax

◆ healthMin

◆ name

one set for cargo

Используется в Add(), JsonObject::AddBool(), JsonObject::AddFloat(), JsonObject::AddInt(), AddModifier(), ScriptedWidgetEventHandler::AddPlayer(), JsonObject::AddString(), ScriptedWidgetEventHandler::AddTab(), JsonObject::AddVector2(), NotificationUI::AddVoiceNotification(), UIScriptedMenu::Apply(), ChangePPEMaterial(), Icon::Combine(), UIScriptedMenu::ConnectLastSession(), ConstructionPart::ConstructionPart(), PluginBase::ContainsFirstClass(), EntityLightSource::CreateLight(), EntityLightSource::CreateLightAtObjMemoryPoint(), CfgParam::CreateParam(), PluginConfigHandler::CustomLocationsAdd(), PluginConfigHandler::CustomLocationsRemove(), DebugAgentData::DebugAgentData(), DebugModifierData::DebugModifierData(), BleedingSourcesManagerBase::DisplayDebug(), Icon::DoubleClick(), HandsContainer::DoubleClick(), AttachmentCategoriesRow::DoubleClick(), ClosableContainer::DoubleClick(), PlayerContainer::DoubleClick(), VicinitySlotsContainer::DoubleClick(), ZombieContainer::DoubleClick(), Icon::DraggingOver(), DraggingOverCenterPanel(), Icon::DraggingOverCombine(), ClosableContainer::DraggingOverGrid(), HandsContainer::DraggingOverGrid(), AttachmentCategoriesRow::DraggingOverGrid(), ClosableContainer::DraggingOverGrid(), HandsArea::DraggingOverHandsPanel(), HandsContainer::DraggingOverHeader(), AttachmentCategoriesContainer::DraggingOverHeader(), AttachmentCategoriesRow::DraggingOverHeader(), VicinityContainer::DraggingOverHeader(), ZombieContainer::DraggingOverHeader(), VicinityContainer::DraggingOverIcon(), Icon::DraggingOverSwap(), Icon::DropReceivedFromMain(), GestureMenuItem(), ItemMap::GetActionWidgetOverride(), FishingRod_Base_New::GetActionWidgetOverride(), BleedingSourcesManagerBase::GetBitFromSelectionName(), PluginBase::GetConfigRecursive(), ScriptConsoleGeneralTab::GetCurrentLocationName(), ManBase::GetDebugActions(), PluginBase::GetID(), GetIDFromClassname(), HandsContainer::GetItemPreviewItem(), AttachmentCategoriesRow::GetItemPreviewItem(), ClosableContainer::GetItemPreviewItem(), ClosableContainer::GetItemPreviewWidget(), PlayerContainer::GetItemPreviewWidget(), ClosableContainer::GetItemPreviewWidgetDragOrDrop(), JsonObject::GetJson(), Managed::GetLastPlayedServer(), Managed::GetLastPlayedServerEx(), Land_WarheadStorage_PowerStation::GetLeverIndexByComponentName(), IEntity::GetLODByName(), GetName(), PluginFileHandler::GetParamByName(), PluginFileHandler::GetParameterArray(), PluginFileHandler::GetParameterBool(), PluginFileHandler::GetParameterFloat(), PluginFileHandler::GetParameterInt(), PluginFileHandler::GetParameterString(), ParticleList::GetParticleIDByName(), GetProfileValueBool(), DayZIntroScene::GetSelectedUserName(), LOD::GetSelectionByName(), IEntity::GetSelectionPositionLS(), IEntity::GetSelectionPositionMS(), IEntity::GetSelectionPositionOld(), IEntity::GetSelectionPositionWS(), SoundSetMap::GetSoundSetID(), GetValidDepenentPartsArray(), CfgParam::GetValueByName(), DayZPlayer::HandleView(), ScriptConsoleItemsTab::Init(), Attachments::InitAttachmentGrid(), AttachmentCategoriesContainer::InitGhostSlots(), ItemBase::InitializeSlots(), BleedingSourcesManagerBase::IsBleedingSourceActive(), ScriptConsoleGeneralTab::IsLocationNameAvailable(), CfgParam::IsParamExist(), PlayerContainer::ItemAttached(), ZombieContainer::ItemAttached(), ScriptedWidgetEventHandler::LoadData(), Widget::LoadVideo(), ModifierDebugObj::ModifierDebugObj(), VicinitySlotsContainer::MouseButtonDown(), VicinitySlotsContainer::MouseClick(), HandsContainer::MouseClick2(), InventoryItem::NameToID(), OnCenterPanelDropReceived(), UIScriptedMenu::OnChange(), OnClick(), ScriptedWidgetEventHandler::OnClick(), UIScriptedMenu::OnClick(), ZombieContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesContainer::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromHeader(), VicinitySlotsContainer::OnDropReceivedFromHeader(), ZombieContainer::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromIcon(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::OnFailThresholdBreached(), HandsArea::OnHandsPanelDropReceived(), InventoryGridController::OnItemDraggingOver(), InventoryGridController::OnItemDropReceived(), JsonApiStruct::OnItemObject(), UIScriptedMenu::OnMouseEnter(), JsonApiStruct::OnObject(), OnRightPanelDropReceived(), PluginBase::OnSpawnErrorReport(), JsonApiStruct::OnStartArray(), PluginFileHandler::ParamExist(), PhysicsGeomDef::PhysicsGeomDef(), ScriptedWidgetEventHandler::PlayerListEntryScriptedWidget(), PluginDayzPlayerDebugUserData::PluginDayzPlayerDebugUserData(), ScriptedWidgetEventHandler::PrepareOwnedSlotsTooltip(), ItemManager::PrepareSlotsTooltip(), UIScriptedMenu::Refresh(), ScriptConsoleGeneralTab::RefreshLocations(), RegisterAnimation(), BleedingSourcesManagerBase::RegisterBleedingZone(), BleedingSourcesManagerBase::RegisterBleedingZoneEx(), KeysToUIElements::RegisterKeyToUIElement(), PluginBase::RegisterVariable(), ScriptedWidgetEventHandler::Reload(), PluginFileHandler::RemoveParamByName(), PluginFileHandler::RemoveParameter(), PluginFileHandler::RemoveParameterArray(), CfgParam::RenameParam(), PluginFileHandler::RenameParam(), UIScriptedMenu::Save(), Managed::SaveCharName(), DayZIntroSceneXbox::SaveCharName(), ManBase::SaySoundSet(), PluginBase::SendRPCMods(), MenuDefaultCharacterData::SetCharacterName(), ColorManager::SetColor(), ClosableContainer::SetEntity(), ClosableHeader::SetName(), Header::SetName(), ScriptedWidgetEventHandler::SetName(), GetServersInput::SetNameFilter(), SceneData::SetNameMission(), SceneData::SetNameScene(), PluginFileHandler::SetParameterArray(), PluginFileHandler::SetParameterBool(), PluginFileHandler::SetParameterFloat(), PluginFileHandler::SetParameterInt(), PluginFileHandler::SetParameterString(), CGame::SetPlayerGameName(), SetProfileValueBool(), UIScriptedMenu::SetServerInfo(), ItemManager::SetTemperature(), Managed::SetupPlayerName(), HudDebugWinBase::SetupValues(), SoundObjectBuilder::SetVariable(), StatDebugObject::StatDebugObject(), Icon::Swap(), SyncedValue::SyncedValue(), SyncedValueAgent(), SyncedValueLevel(), SyncedValueModifier::SyncedValueModifier(), PlayerContainer::ToggleWidget(), ScriptedWidgetEventHandler::TutorialKeybinds(), array::Update(), ScriptedWidgetEventHandler::Update(), UIScriptedMenu::UpdateCategoryName(), UpdateConstructionParts(), Container::UpdateHeaderText(), UpdateNumericalVarsWidget(), DayZIntroSceneXbox::UpdateSelectedUserName(), UIScriptedMenu::UpdateSlotInfo(), HudDebugWinBase::UpdateValues(), HFSMBase< WeaponStateBase, WeaponEventBase, WeaponActionBase, WeaponGuardBase >::ValidateAndRepairHelper() и WorkbenchPluginAttribute::WorkbenchPluginAttribute().

◆ presets

◆ quantityMax

◆ quantityMin

float quantityMin

Используется в ScriptedWidgetEventHandler::BuildCursor().

◆ slotName

◆ spawnWeight

Используется в IsValid().