10 [
Attribute(
"0",
desc:
"The editor mode that the catalog entry has assigned", uiwidget: UIWidgets.SearchComboBox, enums: ParamEnumArray.FromEnum(
EEditorMode))]
17 protected ref array<ref EEntityCatalogType> m_CatalogTypes;
22 if (m_CatalogTypes.IsEmpty())
25 SCR_EntityCatalogManagerComponent catalogManager = SCR_EntityCatalogManagerComponent.GetInstance();
28 Print(
"SCR_PlaceableEntitiesRegistryFromCatalog cannot find SCR_EntityCatalogManagerComponent so can not initialize entries within Catalogs!", LogLevel.WARNING);
34 ProcessCatalog(catalogType, catalogManager);
39 void ProcessCatalog(
EEntityCatalogType catalogType, notnull SCR_EntityCatalogManagerComponent catalogManager)
41 array<ResourceName> prefabs = {};
45 catalogManager.GetFilteredEditorPrefabsOfAllFactions(catalogType, m_eEditorMode, prefabs, getFactionLessPrefabs:
true);
47 catalogManager.GetFilteredEditorPrefabsOfAllFactions(catalogType, m_eEditorMode, prefabs, getFactionLessPrefabs:
false);
49 catalogManager.GetFilteredEditorPrefabs(catalogType, m_eEditorMode,
null, prefabs);
98 array<EEntityCatalogType> catalogTypes = {};
103 title =
"Catalog Getter (" +
typename.EnumToString(
EEditorMode, editorMode) +
")";
105 string categories =
"MISSING CATALOGS!";
107 if (!catalogTypes.IsEmpty())
109 categories =
string.Empty;
111 for (
int i = 0, count = catalogTypes.Count(); i < count; i++)