2class SCR_BIKIGearHelper
13 static array<ResourceName>
GetWeapons(notnull BaseContainer characterContainer)
15 array<IEntityComponentSource> entityComponentSources = {};
16 if (SCR_BaseContainerTools.FindComponentSourcesOfClass(characterContainer, CharacterWeaponSlotComponent,
false, entityComponentSources) < 1)
19 array<ResourceName> result = {};
22 foreach (IEntityComponentSource entityComponentSource : entityComponentSources)
34 static array<ResourceName> GetItems(notnull BaseContainer characterContainer)
36 IEntityComponentSource entityComponentSource = SCR_BaseContainerTools.FindComponentSource(characterContainer, SCR_InventoryStorageManagerComponent);
37 if (!entityComponentSource)
40 array<ResourceName> result = {};
42 BaseContainerList inventoryItemConfigs = entityComponentSource.GetObjectArray(
"InitialInventoryItems");
43 array<ResourceName> prefabsToSpawn;
44 for (
int i, count = inventoryItemConfigs.Count(); i < count; ++i)
46 if (inventoryItemConfigs.Get(i).Get(
"PrefabsToSpawn", prefabsToSpawn))
48 foreach (ResourceName prefabToSpawn : prefabsToSpawn)
50 result.Insert(prefabToSpawn);
61 static array<ResourceName> GetGear(notnull BaseContainer characterContainer)
63 IEntityComponentSource entityComponentSource = SCR_BaseContainerTools.FindComponentSource(characterContainer, BaseLoadoutManagerComponent);
64 if (!entityComponentSource)
67 array<ResourceName> result = {};
70 BaseContainerList gearSlots = entityComponentSource.GetObjectArray(
"Slots");
71 for (
int i, count = gearSlots.Count(); i < count; ++i)
ResourceName resourceName
proto external int GetWeapons(out notnull array< BaseWeaponComponent > outWeapons)