Entity Entry within the SCR_EntityCatalog.
More...
Entity Entry within the SCR_EntityCatalog.
Includes the Prefab and list of Data for each entry
◆ ClassSpecificInit()
void SCR_EntityCatalogEntry.ClassSpecificInit |
( |
| ) |
|
|
protected |
◆ GetCatalogIndex()
int SCR_EntityCatalogEntry.GetCatalogIndex |
( |
| ) |
|
Get Index of entry within Catalog.
- Returns
- index
◆ GetCatalogParent()
Get Catalog parent the entity entry is in.
- Returns
- Catalog parent
◆ GetEditableEntityLabels()
int SCR_EntityCatalogEntry.GetEditableEntityLabels |
( |
notnull out array< EEditableEntityLabel > |
editableEntityLables | ) |
|
Get a list of all editable entity lables Prefab needs to be an editable entity.
- Parameters
-
[out] | List | of all labels on entity |
- Returns
- length of lable array
Implemented in SCR_EntityCatalogEntryNonEditable.
◆ GetEntityDataList()
Get list of entity Data of all types Ignores Disabled Elements.
- Parameters
-
[out] | Array | of enabled entity Data list |
- Returns
- List size
◆ GetEntityDataOfType()
Get prefab entity Data of type.
Ignores disabled Data's
- Parameters
-
dataType | class of Data type you with to obtain |
- Returns
- Entity Data of given type. Null if not found
◆ GetEntityName()
Get Name of entity Prefab needs to be an editable entity.
- Returns
- Name, empty string if no uiinfo was found
◆ GetEntityUiInfo()
SCR_UIInfo SCR_EntityCatalogEntry.GetEntityUiInfo |
( |
| ) |
|
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.
- Returns
- Ui info
Implemented in SCR_EntityCatalogEntryCustomInfo.
◆ GetPrefab()
ResourceName SCR_EntityCatalogEntry.GetPrefab |
( |
| ) |
|
Get Prefab data.
- Returns
- Prefab data
◆ HasAllEditableEntityLabels()
bool SCR_EntityCatalogEntry.HasAllEditableEntityLabels |
( |
notnull array< EEditableEntityLabel > |
editableEntityLables | ) |
|
Check if entity has ALL of the given labels Prefab needs to be an editable entity.
- Parameters
-
editableEntityLables | Labels to check if entity has ALL of them |
- Returns
- True if entity has ALL of the label
Implemented in SCR_EntityCatalogEntryNonEditable.
◆ HasAllEntityDataOfTypes()
bool SCR_EntityCatalogEntry.HasAllEntityDataOfTypes |
( |
array< TypeName > |
dataTypes | ) |
|
Check if has ALL the entity datas of the given types Ignores disabled Data's.
- Parameters
-
dataTypes | classes of Data types you want to check |
- Returns
- True if the entity has ALL the enabled data of given types
◆ HasAnyEditableEntityLabels()
bool SCR_EntityCatalogEntry.HasAnyEditableEntityLabels |
( |
notnull array< EEditableEntityLabel > |
editableEntityLables | ) |
|
Check if entity has any one of the given labels Prefab needs to be an editable entity.
- Parameters
-
editableEntityLables | Labels to check if entity has any of them |
- Returns
- True if entity has any of the label
Implemented in SCR_EntityCatalogEntryNonEditable.
◆ HasAnyEntityDataOfTypes()
bool SCR_EntityCatalogEntry.HasAnyEntityDataOfTypes |
( |
array< TypeName > |
dataTypes | ) |
|
Check if has ANY the entity datas of the given types Ignores disabled Data's.
- Parameters
-
dataTypes | classes of Data types you want to check |
- Returns
- True if the entity has ANY the enabled data of given types
◆ HasEditableEntityLabel()
bool SCR_EntityCatalogEntry.HasEditableEntityLabel |
( |
EEditableEntityLabel |
editableEntityLabel | ) |
|
Check if entity has given label Prefab needs to be an editable entity.
- Parameters
-
editableEntityLabel | Label to check if entity has it |
- Returns
- True if entity has the label
Implemented in SCR_EntityCatalogEntryNonEditable.
◆ HasEntityDataOfType()
bool SCR_EntityCatalogEntry.HasEntityDataOfType |
( |
TypeName |
dataType | ) |
|
Check if has the entity data of the given type Ignores disabled Data's.
- Parameters
-
dataType | class of Data type you want to check |
- Returns
- True if the entity has an enabled data of given type
◆ InitEntry()
void SCR_EntityCatalogEntry.InitEntry |
( |
notnull SCR_EntityCatalog |
catalog, |
|
|
int |
catalogIndex |
|
) |
| |
Init for general entry.
Setting index and called class specific init Only set by Catalog parent on init. Should not be overwritten
- Parameters
-
catalog | Catalog entry is in |
index | Index within catalog |
◆ IsEnabled()
bool SCR_EntityCatalogEntry.IsEnabled |
( |
| ) |
|
If is Enabled.
- Returns
- If enabled or disabled
◆ PostInitEntry()
Post Init for general entry.
Called one frame after init is called Only set by Catalog parent on post init. Should not be overwritten
- Parameters
-
[i] | catalog Catalog entry is in |
◆ m_aEntityDataList
◆ m_bEnabled
bool SCR_EntityCatalogEntry.m_bEnabled |
|
protected |
◆ m_CatalogParent
◆ m_EditableEntityUiInfo
ref SCR_UIInfo SCR_EntityCatalogEntry.m_EditableEntityUiInfo |
|
protected |
◆ m_iCatalogIndex
int SCR_EntityCatalogEntry.m_iCatalogIndex = -1 |
|
protected |
◆ m_sEntityPrefab
ResourceName SCR_EntityCatalogEntry.m_sEntityPrefab |
|
protected |
The documentation for this interface was generated from the following file:
- Game/EntityCatalog/EntityCatalogEntry/SCR_EntityCatalogEntry.c