10 [
Attribute(
"1",
desc:
"Allows to disable the Entity data. It will be removed from the array on init if it is disabled and can never be obtained. Used for specific gamemodes and modding.")]
13 [
Attribute(
desc:
"List of specific Data for the entity. Each element should be an unique class (Unless all but one are disabled). This list is static and should not be changed in runtime.")]
103 editableEntityLables.Clear();
185 if (entityData.IsEnabled() && entityData.Type().IsInherited(dataType))
202 entityDataList.Clear();
208 if (entityData.IsEnabled())
209 entityDataList.Insert(entityData);
212 return entityDataList.Count();
227 if (entityData.IsEnabled() && entityData.Type().IsInherited(dataType))
243 foreach (
typename dataType: dataTypes)
261 foreach (
typename dataType: dataTypes)
291 array<SCR_BaseEntityCatalogData> entityDataList = {};
307 array<SCR_BaseEntityCatalogData> entityDataList = {};
311 data.PostInitData(
this);
336 if (!editableEntitySource)
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_EditableEntityVariantData BaseContainerCustomDoubleCheckIntResourceNameTitleField("m_bEnabled", "m_sVariantPrefab", 1, "%1", "DISABLED - %1")
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Object holding reference to resource. In destructor release the resource.
static IEntityComponentSource GetEditableEntitySource(Resource entityResource)
bool HasEntityLabel(EEditableEntityLabel label)
int GetEntityLabels(out notnull array< EEditableEntityLabel > entityLabels)
Get prefab entity Data of type Ignores disabled Data s param dataType class of Data type you with to obtain return Entity Data of given type Null if not found *SCR_BaseEntityCatalogData GetEntityDataOfType(typename dataType)
Get Index of entry within Catalog return index *int GetCatalogIndex()
bool HasAnyEntityDataOfTypes(array< typename > dataTypes)
Get list of entity Data of all types Ignores Disabled Elements param[out] Array of enabled entity Data list return List size *int GetEntityDataList(notnull out array< SCR_BaseEntityCatalogData > entityDataList)
Check if entity has given label Prefab needs to be an editable entity param editableEntityLabel Label to check if entity has it return True if entity has the label *bool HasEditableEntityLabel(EEditableEntityLabel editableEntityLabel)
Post Init for general entry Called one frame after init is called Only set by Catalog parent on post init Should not be overwritten param[i] catalog Catalog entry is in *void PostInitEntry(SCR_EntityCatalog catalog)
Check if has the entity data of the given type Ignores disabled Data s param dataType class of Data type you want to check return True if the entity has an enabled data of given type *bool HasEntityDataOfType(typename dataType)
Get Catalog parent the entity entry is in return Catalog parent *SCR_EntityCatalog GetCatalogParent()
Get UI info Prefab needs to be an editable entity or have a custom UI info logic Note that if UIInfo is NULL then the autotest will fail return Ui info *SCR_UIInfo GetEntityUiInfo()
bool HasAllEntityDataOfTypes(array< typename > dataTypes)
SCR_EntityCatalog m_CatalogParent
Init for general entry Setting index and called class specific init Only set by Catalog parent on init Should not be overwritten param catalog Catalog entry is in param index Index within catalog *void InitEntry(notnull SCR_EntityCatalog catalog, int catalogIndex)
Get Name of entity Prefab needs to be an editable entity return empty string if no uiinfo was found *LocalizedString GetEntityName()
ref array< ref SCR_BaseEntityCatalogData > m_aEntityDataList
Check if entity has ALL of the given labels Prefab needs to be an editable entity param editableEntityLables Labels to check if entity has ALL of them return True if entity has ALL of the label *bool HasAllEditableEntityLabels(notnull array< EEditableEntityLabel > editableEntityLables)
Check if entity has any one of the given labels Prefab needs to be an editable entity param editableEntityLables Labels to check if entity has any of them return True if entity has any of the label *bool HasAnyEditableEntityLabels(notnull array< EEditableEntityLabel > editableEntityLables)
If is Enabled return If enabled or disabled *bool IsEnabled()
ResourceName m_sEntityPrefab
Get a list of all editable entity lables Prefab needs to be an editable entity param[out] List of all labels on entity return length of lable array *int GetEditableEntityLabels(notnull out array< EEditableEntityLabel > editableEntityLables)
Get Prefab data return Prefab data *ResourceName GetPrefab()
ref SCR_UIInfo m_EditableEntityUiInfo
SCR_FieldOfViewSettings Attribute