|
Arma Reforger Script API
|
Manager of faction delegates - entities representing available factions. More...
Public Member Functions | |
| int | GetFactionDelegates (notnull out map< Faction, SCR_EditableFactionComponent > outDelegates) |
| Get all faction delegates. | |
| int | GetSortedFactionDelegates (notnull out SCR_SortedArray< SCR_EditableFactionComponent > outDelegates) |
| Get all faction delegates, in the same order as factions are defined in factions manager. | |
| int | GetFactionDelegateCount () |
| Get number of faction delegates. | |
| int | GetPlayableFactionDelegates (notnull out map< Faction, SCR_EditableFactionComponent > outDelegates) |
| Get number of enabled faction delegates. | |
| int | GetPlayableFactionDelegateCount () |
| Get number of enabled faction delegates. | |
| SCR_EditableFactionComponent | GetFactionDelegate (Faction faction) |
| Get delegate of the given faction. | |
| void | SetFactionDelegate (Faction faction, SCR_EditableFactionComponent delegate) |
| Get delegate of the given faction. | |
| override void | OnFactionsInit (array< Faction > factions) |
| Method called on every machine when factions are initialised. | |
Public Member Functions inherited from SCR_BaseFactionManagerComponent | |
| void | SCR_BaseFactionManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Static Public Member Functions | |
| static SCR_DelegateFactionManagerComponent | GetInstance () |
| Get local instance of the component. | |
Protected Attributes | |
| ResourceName | m_FactionDelegatePrefab |
| ref map< Faction, SCR_EditableFactionComponent > | m_FactionDelegates = new map<Faction, SCR_EditableFactionComponent> |
Manager of faction delegates - entities representing available factions.
Used so we can interact with them in the editor.
| SCR_EditableFactionComponent SCR_DelegateFactionManagerComponent.GetFactionDelegate | ( | Faction | faction | ) |
Get delegate of the given faction.
| faction | Requested faction |
| int SCR_DelegateFactionManagerComponent.GetFactionDelegateCount | ( | ) |
Get number of faction delegates.
| int SCR_DelegateFactionManagerComponent.GetFactionDelegates | ( | notnull out map< Faction, SCR_EditableFactionComponent > | outDelegates | ) |
Get all faction delegates.
| outDelegates | map to be filled with factions and their delegate entities |
|
static |
Get local instance of the component.
| int SCR_DelegateFactionManagerComponent.GetPlayableFactionDelegateCount | ( | ) |
Get number of enabled faction delegates.
| int SCR_DelegateFactionManagerComponent.GetPlayableFactionDelegates | ( | notnull out map< Faction, SCR_EditableFactionComponent > | outDelegates | ) |
Get number of enabled faction delegates.
| int SCR_DelegateFactionManagerComponent.GetSortedFactionDelegates | ( | notnull out SCR_SortedArray< SCR_EditableFactionComponent > | outDelegates | ) |
Get all faction delegates, in the same order as factions are defined in factions manager.
| outDelegates | Sorted array to be filled with delegate entities |
| override void SCR_DelegateFactionManagerComponent.OnFactionsInit | ( | array< Faction > | factions | ) |
Method called on every machine when factions are initialised.
To be overloaded by inherited components.
| [in] | factions | Available factions |
Implements SCR_BaseFactionManagerComponent.
| void SCR_DelegateFactionManagerComponent.SetFactionDelegate | ( | Faction | faction, |
| SCR_EditableFactionComponent | delegate ) |
Get delegate of the given faction.
| faction | Requested faction |
| delegate | Delegate entity |
|
protected |
|
protected |