Arma Reforger Script API
|
Catalog that holds faction entity lists of a specific entity type. More...
Public Member Functions | |
EEntityCatalogType | GetCatalogType () |
Get Data type. | |
int | GetEntityList (notnull out array< SCR_EntityCatalogEntry > entityList) |
Get list of entities witin Catalog Ignores Disabled Entries Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
SCR_EntityCatalogEntry | GetEntryWithPrefab (ResourceName prefabToFind) |
Return entry with specific prefab Ignores Disabled Entries. | |
SCR_EntityCatalogEntry | GetCatalogEntry (int index) |
Get Catalog Entry of index. | |
int | GetEntityListWithLabel (EEditableEntityLabel label, notnull out array< SCR_EntityCatalogEntry > filteredEntityList) |
Get list of entities witin Catalog which have a specific Label Ignores Disabled Entries and disabled Data types Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetEntityListExcludingLabel (EEditableEntityLabel excludinglabel, notnull out array< SCR_EntityCatalogEntry > filteredEntityList) |
Get list of entities witin Catalog EXCLUDING those with specific label Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetFullFilteredEntityListWithLabels (notnull out array< SCR_EntityCatalogEntry > filteredEntityList, array< EEditableEntityLabel > includedLabels=null, array< EEditableEntityLabel > excludedLabels=null, bool needsAllIncluded=true) |
Get list of entities that all contain all/any the included labels and NONE exclude labels Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetEntityListWithData (TypeName dataClass, notnull out array< SCR_EntityCatalogEntry > filteredEntityList, out array< SCR_BaseEntityCatalogData > dataList=null) |
Get list of entities witin Catalog which have a specific Data type (Needs to be inherent from SCR_BaseEntityCatalogData) Ignores Disabled Entries and disabled Data types Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetEntityListExcludingData (TypeName excludingDataClass, notnull out array< SCR_EntityCatalogEntry > filteredEntityList) |
Get list of entities witin Catalog EXCLUDING those with specific Data type (Needs to be inherent from SCR_BaseEntityCatalogData) Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetFullFilteredEntityListWithData (notnull out array< SCR_EntityCatalogEntry > filteredEntityList, array< TypeName > includedDataClasses=null, array< TypeName > excludedDataClasses=null, bool needsAllIncluded=true) |
Get list of entities that all contain all/any the included Data classes and NONE exclude data classes Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
int | GetFullFilteredEntityList (notnull out array< SCR_EntityCatalogEntry > filteredEntityList, array< EEditableEntityLabel > includedLabels=null, array< EEditableEntityLabel > excludedLabels=null, array< TypeName > includedDataClasses=null, array< TypeName > excludedDataClasses=null, bool needsAllIncludedLabels=true, bool needsAllIncludedClasses=true) |
Get list of entities that all contain all/any the included labels and/or Data classes and NONE exclude labels and/or data classes Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got. | |
void | MergeCatalogs (notnull SCR_EntityCatalog catalogToMerge) |
Merge the given catalog into this catalog. | |
void | InitCatalog () |
void | ClearCatalogOnMerge () |
Clear the catalog only executed on merge. | |
Protected Member Functions | |
void | PostInitCatalog () |
Protected Attributes | |
EEntityCatalogType | m_eEntityCatalogType |
ref array< ref SCR_EntityCatalogEntry > | m_aEntityEntryList |
ref map< ResourceName, int > | m_mPrefabIndexes = new map<ResourceName, int>() |
Catalog that holds faction entity lists of a specific entity type.
void SCR_EntityCatalog.ClearCatalogOnMerge | ( | ) |
Clear the catalog only executed on merge.
Implemented in SCR_EntityCatalogMultiList.
SCR_EntityCatalogEntry SCR_EntityCatalog.GetCatalogEntry | ( | int | index | ) |
Get Catalog Entry of index.
Can ignores disabled entries
Index | of entry within list |
EEntityCatalogType SCR_EntityCatalog.GetCatalogType | ( | ) |
Get Data type.
int SCR_EntityCatalog.GetEntityList | ( | notnull out array< SCR_EntityCatalogEntry > | entityList | ) |
Get list of entities witin Catalog Ignores Disabled Entries Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
[out] | entityList | Array of enabled entity list |
int SCR_EntityCatalog.GetEntityListExcludingData | ( | TypeName | excludingDataClass, |
notnull out array< SCR_EntityCatalogEntry > | filteredEntityList | ||
) |
Get list of entities witin Catalog EXCLUDING those with specific Data type (Needs to be inherent from SCR_BaseEntityCatalogData) Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
excludingDataClass | class of Data type you DON'T want the data from (Needs to be inherent from SCR_BaseEntityCatalogData) | |
[out] | filteredEntityList | Array of enabled entity list without the specific Data type |
int SCR_EntityCatalog.GetEntityListExcludingLabel | ( | EEditableEntityLabel | excludinglabel, |
notnull out array< SCR_EntityCatalogEntry > | filteredEntityList | ||
) |
Get list of entities witin Catalog EXCLUDING those with specific label Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
excludinglabel | Label you want the entry NOT have | |
[out] | filteredEntityList | Array of enabled entity list without the specific label |
int SCR_EntityCatalog.GetEntityListWithData | ( | TypeName | dataClass, |
notnull out array< SCR_EntityCatalogEntry > | filteredEntityList, | ||
out array< SCR_BaseEntityCatalogData > | dataList = null |
||
) |
Get list of entities witin Catalog which have a specific Data type (Needs to be inherent from SCR_BaseEntityCatalogData) Ignores Disabled Entries and disabled Data types Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
dataClass | class of Data type you want the data to have in order to be added to the list (Needs to be inherent from SCR_BaseEntityCatalogData) | |
[out] | filteredEntityList | Array of enabled entity list with specific Data type |
[out] | dataList | optionally you can directly get the data list if array given |
int SCR_EntityCatalog.GetEntityListWithLabel | ( | EEditableEntityLabel | label, |
notnull out array< SCR_EntityCatalogEntry > | filteredEntityList | ||
) |
Get list of entities witin Catalog which have a specific Label Ignores Disabled Entries and disabled Data types Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
label | Label you want the entry to have | |
[out] | filteredEntityList | Array of enabled entity list with the specific label |
SCR_EntityCatalogEntry SCR_EntityCatalog.GetEntryWithPrefab | ( | ResourceName | prefabToFind | ) |
Return entry with specific prefab Ignores Disabled Entries.
prefabToFind | Prefab the entry has that you are looking for |
int SCR_EntityCatalog.GetFullFilteredEntityList | ( | notnull out array< SCR_EntityCatalogEntry > | filteredEntityList, |
array< EEditableEntityLabel > | includedLabels = null , |
||
array< EEditableEntityLabel > | excludedLabels = null , |
||
array< TypeName > | includedDataClasses = null , |
||
array< TypeName > | excludedDataClasses = null , |
||
bool | needsAllIncludedLabels = true , |
||
bool | needsAllIncludedClasses = true |
||
) |
Get list of entities that all contain all/any the included labels and/or Data classes and NONE exclude labels and/or data classes Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
[out] | filteredEntityList | Filltered array of enabled entity |
includedLabels | A list of labels the entity needs all/any to have. Can be null if any of the other arrays are filled | |
excludedLabels | A list of labels the entity CANNOT have ANY of. Can be null if any of the other arrays are filled | |
includedDataClasses | A list of classes the entity ALL needs to have. Can be null if any of the other arrays are filled (Needs to be inherent from SCR_BaseEntityCatalogData) | |
excludedDataClasses | A list of classes the entity CANNOT have ANY of. Can be null if any of the other arrays are filled (Needs to be inherent from SCR_BaseEntityCatalogData) | |
needsAllIncludedLabels | If true included List all needs to be true, if false any needs to be true | |
needsAllIncludedClasses | If true included List all needs to be true, if false any needs to be true |
int SCR_EntityCatalog.GetFullFilteredEntityListWithData | ( | notnull out array< SCR_EntityCatalogEntry > | filteredEntityList, |
array< TypeName > | includedDataClasses = null , |
||
array< TypeName > | excludedDataClasses = null , |
||
bool | needsAllIncluded = true |
||
) |
Get list of entities that all contain all/any the included Data classes and NONE exclude data classes Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
[out] | filteredEntityList | Filltered array of enabled entity |
includedDataClasses | A list of classes the entity needs all/any to have. Can be null if exclusive is filled (Needs to be inherent from SCR_BaseEntityCatalogData) | |
excludedDataClasses | A list of classes the entity CANNOT have ANY of. Can be null if inclusive is filled (Needs to be inherent from SCR_BaseEntityCatalogData) | |
needsAllIncluded | If true included List all needs to be true, if false any needs to be true |
int SCR_EntityCatalog.GetFullFilteredEntityListWithLabels | ( | notnull out array< SCR_EntityCatalogEntry > | filteredEntityList, |
array< EEditableEntityLabel > | includedLabels = null , |
||
array< EEditableEntityLabel > | excludedLabels = null , |
||
bool | needsAllIncluded = true |
||
) |
Get list of entities that all contain all/any the included labels and NONE exclude labels Ignores Disabled Entries as well Sometimes it is quicker to get the index (entityList[i].GetCatalogIndex()) and use the GetCatalogEntry() directly as it saves looping through the list and you don't need to save a ref to the list you got.
[out] | filteredEntityList | Filltered array of enabled entity |
includedLabels | A list of labels the entity needs all/any to have. Can be null if exclusive is filled | |
excludedLabels | A list of labels the entity CANNOT have ANY of. Can be null if inclusive is filled | |
needsAllIncluded | If true included List all needs to be true, if false any needs to be true |
void SCR_EntityCatalog.InitCatalog | ( | ) |
Implemented in SCR_EntityCatalogMultiList.
void SCR_EntityCatalog.MergeCatalogs | ( | notnull SCR_EntityCatalog | catalogToMerge | ) |
Merge the given catalog into this catalog.
Used on init to create one coherent list of each catalog type
catalogToMerge | Given catalog to merge into this one |
|
protected |
|
protected |
|
protected |
|
protected |