Static Private Member Functions | |
static bool | LoadData () |
static bool | IsInitialized () |
static PlayerSpawnPreset | GetRandomCharacterPreset () |
static bool | ProcessEquipmentData (PlayerBase player, PlayerSpawnPreset data) |
equips character with the chosen preset | |
static private void | ProcessSlotsEquipment (PlayerBase player, PlayerSpawnPreset data) |
iterates over each object and spawns alternatives | |
static private bool | SelectAndSpawnSlotEquipment (PlayerBase player, PlayerSpawnPresetSlotData slotData) |
selects weighted slot equipment variant | |
static private void | ProcessCargoEquipment (PlayerBase player, PlayerSpawnPreset data) |
chooses one object from the array | |
static private bool | SelectAndSpawnCargoSet (PlayerBase player, PlayerSpawnPreset data) |
static private bool | SpawnDiscreteCargoItemSet (PlayerBase player, PlayerSpawnPresetDiscreteCargoSetData csd) |
static private bool | SpawnDiscreteSlotItemSet (PlayerBase player, PlayerSpawnPresetDiscreteItemSetSlotData dis, int slotID) |
static private bool | SpawnComplexChildrenItems (EntityAI parent, notnull PlayerSpawnPresetItemSetBase data) |
could spawn other items recursively. Parent item is guaranteed here. | |
static private bool | SpawnSimpleChildrenItems (EntityAI parent, PlayerSpawnPresetItemSetBase data) |
static private void | HandleNewItem (notnull ItemBase item, PlayerSpawnPresetItemSetBase data) |
static private EntityAI | CreateChildItem (EntityAI parent, string type) |
static private void | ApplyAttributes (ItemBase item, PlayerSpawnAttributesData attributes) |
static private bool | IsWeaponAndMagazineType (EntityAI parent, string type) |
Used for exceptions in the system. | |
Static Private Attributes | |
static private bool | m_Initialized |
static ref PlayerSpawnJsonData | m_Data = new PlayerSpawnJsonData() |
|
inlinestaticprivate |
References Math::Lerp(), Math::RandomFloatInclusive(), Math::Round(), and ItemBase::SetQuantity().
Referenced by HandleNewItem(), and SpawnSimpleChildrenItems().
References Class::CastTo(), CFG_MAGAZINESPATH, GetGame(), and Debug::Log().
Referenced by SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
|
inlinestaticprivate |
References PlayerSpawnPreset::IsValid(), m_Data, and PlayerSpawnPreset::spawnWeight.
Referenced by MissionBase::OnClientNewEvent().
|
inlinestaticprivate |
|
inlinestaticprivate |
References m_Initialized.
Referenced by MissionBase::OnClientNewEvent().
Used for exceptions in the system.
References CFG_MAGAZINESPATH, and GetGame().
Referenced by SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
|
inlinestaticprivate |
References ErrorEx, CfgGameplayHandler::GetPlayerSpawnGearPresetFiles(), m_Data, m_Initialized, and path.
Referenced by MissionBase::OnInit().
|
inlinestaticprivate |
chooses one object from the array
References PlayerSpawnPreset::HasDiscreteUnsortedItemSetsDefined(), Debug::Log(), and SelectAndSpawnCargoSet().
Referenced by ProcessEquipmentData().
|
inlinestaticprivate |
equips character with the chosen preset
References PlayerSpawnPreset::IsValid(), ProcessCargoEquipment(), and ProcessSlotsEquipment().
Referenced by MissionBase::OnClientNewEvent().
|
inlinestaticprivate |
iterates over each object and spawns alternatives
References PlayerSpawnPreset::attachmentSlotItemSets, PlayerSpawnPreset::HasAttachmentSlotSetsDefined(), Debug::Log(), and SelectAndSpawnSlotEquipment().
Referenced by ProcessEquipmentData().
|
inlinestaticprivate |
References PlayerSpawnPreset::discreteUnsortedItemSets, and SpawnDiscreteCargoItemSet().
Referenced by ProcessCargoEquipment().
|
inlinestaticprivate |
selects weighted slot equipment variant
References PlayerSpawnPresetDiscreteItemSetSlotData::IsValid(), and SpawnDiscreteSlotItemSet().
Referenced by ProcessSlotsEquipment().
|
inlinestaticprivate |
could spawn other items recursively. Parent item is guaranteed here.
References Class::CastTo(), CreateChildItem(), HandleNewItem(), IsWeaponAndMagazineType(), and Debug::Log().
Referenced by HandleNewItem(), and SpawnDiscreteCargoItemSet().
|
inlinestaticprivate |
References SpawnComplexChildrenItems(), and SpawnSimpleChildrenItems().
Referenced by SelectAndSpawnCargoSet().
|
inlinestaticprivate |
References string::Empty, InventorySlots::GetSlotName(), HandleNewItem(), PlayerSpawnPresetDiscreteItemSetSlotData::itemType, and Debug::Log().
Referenced by SelectAndSpawnSlotEquipment().
|
inlinestaticprivate |
References ApplyAttributes(), PlayerSpawnPresetItemSetBase::attributes, Class::CastTo(), CreateChildItem(), Empty, IsWeaponAndMagazineType(), Debug::Log(), PlayerSpawnPresetItemSetBase::simpleChildrenTypes, and PlayerSpawnPresetItemSetBase::simpleChildrenUseDefaultAttributes.
Referenced by HandleNewItem(), and SpawnDiscreteCargoItemSet().
|
staticprivate |
Referenced by GetRandomCharacterPreset(), and LoadData().
|
staticprivate |
Referenced by IsInitialized(), and LoadData().