|
Arma Reforger Script API
|
Public Member Functions | |
| SCR_FactionCommanderMenuEntry | GetConfigForEntry (notnull SCR_SelectionMenuEntry entry) |
| void | SetReplaceCommanderCooldownTimestamp (WorldTimestamp timeStamp) |
| WorldTimestamp | GetReplaceCommanderCooldownTimestamp () |
| void | OnCommanderRightsGained () |
| void | OnCommanderRightsLost () |
| void | SetNextVolunteeringTimestamp (WorldTimestamp timestamp) |
| WorldTimestamp | GetNextVolunteeringTimestamp () |
| void | CreateRequestedTask (string taskPrefab, vector position, int requesterGroupId, SCR_AIGroup group, int playerId, SCR_FactionCommanderBaseMenuHandler handler=null) |
| Create requested task. | |
| void | CreateTask (ResourceName taskPrefab, vector position, SCR_AIGroup group, int playerId, SCR_FactionCommanderBaseMenuHandler handler=null) |
| Create task. | |
| void | AssignGroupToTask (int groupId, string taskId, int requesterID) |
| void | CancelTask (int playerId, string taskId) |
| void | FinishTask (int playerId, string taskId) |
| Finish task. | |
| void | OnOwnershipChanged (bool changing, bool becameOwner) |
| override void | EOnInit (IEntity owner) |
| override void | OnPostInit (IEntity owner) |
Static Public Member Functions | |
| static int | GenerateTaskID () |
| static bool | IsLocalPlayerCommander () |
Static Public Attributes | |
| static const string | TASK_ID = "%1_Task_%2" |
| static const string | REQUESTED_TASK_ID = "%1_RequestedTask_%2" |
Protected Member Functions | |
| SCR_SelectionMenuEntry | GetEntryByName (string name) |
| SCR_AIGroup | GetAssignedGroup (SCR_SelectionMenuEntry entry) |
| Returns a group associated with given entry. | |
| void | AddRequestOrder (SCR_SelectionMenuCategoryEntry category, notnull SCR_FactionCommanderBaseMenuHandler handler) |
| void | AddCreateObjectiveOrder (SCR_SelectionMenuCategoryEntry category, notnull SCR_FactionCommanderBaseMenuHandler handler) |
| void | FillMenuWithGroups (SCR_SelectionMenuCategoryEntry category, notnull SCR_FactionCommanderBaseMenuHandler handler) |
| Adds all groups of Commander's faction under a given category as menu entries. | |
| string | GetGroupEntryDisplayName (SCR_AIGroup group) |
| Returns the display name to be shown in radial menu for the given group. | |
| void | GetGroupEntryIconData (SCR_AIGroup group, out ResourceName imagesetName, out string iconName) |
| Returns the imageset and icon name to be shown in radial menu for the given group and category. | |
| string | GetDefaultGroupOrderIcon () |
| string | GetRequestOrderEntryDisplayName () |
| Returns the display name to be shown in radial menu for the Request order category. | |
| void | GetRequestOrderEntryIconData (out ResourceName imagesetName, out string iconName) |
| Returns the imageset and icon name to be shown in radial menu for the Faction order category. | |
| string | GetDefaultRequestOrderIcon () |
| string | GetCreateObjectiveOrderEntryDisplayName () |
| Returns the display name to be shown in radial menu for the create objective order. | |
| void | GetCreateObjectiveOrderEntryIconData (out ResourceName imagesetName, out string iconName) |
| Returns the imageset and icon name to be shown in radial menu for the create objective order. | |
| string | GetDefaultCreateObjectiveOrderIcon () |
| void | OnMapOpen (MapConfiguration config) |
| void | OnMapClose (MapConfiguration config) |
| void | OnContextualMenuInit () |
| Called when opening the radial menu for the first time after opening the map. | |
| void | CreateConfigEntries () |
| Adds entries as defined in the hierarchy config (stored in SCR_Faction) | |
| void | CreateConfigEntry (notnull SCR_FactionCommanderMenuEntry configEntry, SCR_SelectionMenuCategoryEntry parentCategory, SCR_FactionCommanderMenuEntry rootConfigEntry) |
| Creates a radial menu entry from config data SCR_FactionCommanderMenuEntry. | |
| void | CreateConfigCategory (notnull SCR_FactionCommanderMenuEntry configEntry, SCR_SelectionMenuCategoryEntry parentCategory, notnull array< ref SCR_FactionCommanderMenuEntry > childEntries, SCR_FactionCommanderMenuEntry rootConfigEntry) |
| Creates a radial menu category from config data (SCR_FactionCommanderMenuEntry) | |
| void | OnRadialMenuBeforeOpen () |
| Called each time the radial menu is before open in the map. | |
| void | OnRadialMenuOpen () |
| Called each time the radial menu is open in the map. | |
| void | OnRadialMenuClose () |
| Called each time the radial menu is closed in the map. | |
| void | ClearRadialMenu () |
| void | OnCommandPerformed (SCR_SelectionMenuEntry element, float[] worldPos) |
| Called when a radial menu action is triggered. | |
| void | RpcAsk_CreateRequestedTask (string taskPrefab, vector destination, int requesterGroupId, int assigneeId, int playerId) |
| void | RpcAsk_CreateTask (string taskPrefab, int assigneeId, int playerId, vector destination, int factionIndex, int data) |
| void | RpcAsk_AssignGroupToTask (int groupId, string taskId, int requesterID) |
| void | RpcAsk_CancelTask (int playerId, string taskId) |
| void | RpcAsk_FinishTask (int playerId, string taskId) |
| void | OnEntryHovered (SCR_SelectionMenuEntry entry, int id) |
| void | OnTaskHovered (SCR_Task task) |
| bool | IsTaskValid (SCR_Task task) |
| void | ProcessEvents (bool activate) |
Static Protected Attributes | |
| static int | s_iLastGeneratedTaskId |
|
protected |
|
protected |
| void SCR_FactionCommanderPlayerComponent.AssignGroupToTask | ( | int | groupId, |
| string | taskId, | ||
| int | requesterID ) |
| void SCR_FactionCommanderPlayerComponent.CancelTask | ( | int | playerId, |
| string | taskId ) |
|
protected |
Implemented in SCR_CampaignFactionCommanderPlayerComponent.
|
protected |
Creates a radial menu category from config data (SCR_FactionCommanderMenuEntry)
|
protected |
Adds entries as defined in the hierarchy config (stored in SCR_Faction)
|
protected |
Creates a radial menu entry from config data SCR_FactionCommanderMenuEntry.
| void SCR_FactionCommanderPlayerComponent.CreateRequestedTask | ( | string | taskPrefab, |
| vector | position, | ||
| int | requesterGroupId, | ||
| SCR_AIGroup | group, | ||
| int | playerId, | ||
| SCR_FactionCommanderBaseMenuHandler | handler = null ) |
Create requested task.
| [in] | taskPrefab | |
| [in] | position | |
| [in] | requesterGroupId | |
| [in] | group | |
| [in] | playerId | |
| [in] | handler |
| void SCR_FactionCommanderPlayerComponent.CreateTask | ( | ResourceName | taskPrefab, |
| vector | position, | ||
| SCR_AIGroup | group, | ||
| int | playerId, | ||
| SCR_FactionCommanderBaseMenuHandler | handler = null ) |
Create task.
| [in] | taskPrefab | |
| [in] | position | |
| [in] | group | |
| [in] | playerId | |
| [in] | handler |
| override void SCR_FactionCommanderPlayerComponent.EOnInit | ( | IEntity | owner | ) |
|
protected |
Adds all groups of Commander's faction under a given category as menu entries.
| void SCR_FactionCommanderPlayerComponent.FinishTask | ( | int | playerId, |
| string | taskId ) |
Finish task.
| [in] | playerId | |
| [in] | taskId |
|
static |
|
protected |
Returns a group associated with given entry.
| SCR_FactionCommanderMenuEntry SCR_FactionCommanderPlayerComponent.GetConfigForEntry | ( | notnull SCR_SelectionMenuEntry | entry | ) |
|
protected |
Returns the display name to be shown in radial menu for the create objective order.
|
protected |
Returns the imageset and icon name to be shown in radial menu for the create objective order.
|
protected |
|
protected |
|
protected |
|
protected |
| name | Entry name as defined in the config (SCR_FactionCommanderMenuHierarchy) |
|
protected |
Returns the display name to be shown in radial menu for the given group.
|
protected |
Returns the imageset and icon name to be shown in radial menu for the given group and category.
| WorldTimestamp SCR_FactionCommanderPlayerComponent.GetNextVolunteeringTimestamp | ( | ) |
| WorldTimestamp SCR_FactionCommanderPlayerComponent.GetReplaceCommanderCooldownTimestamp | ( | ) |
|
protected |
Returns the display name to be shown in radial menu for the Request order category.
|
protected |
Returns the imageset and icon name to be shown in radial menu for the Faction order category.
|
static |
|
protected |
| void SCR_FactionCommanderPlayerComponent.OnCommanderRightsGained | ( | ) |
| void SCR_FactionCommanderPlayerComponent.OnCommanderRightsLost | ( | ) |
|
protected |
Called when a radial menu action is triggered.
|
protected |
Called when opening the radial menu for the first time after opening the map.
|
protected |
Implemented in SCR_CampaignFactionCommanderPlayerComponent.
|
protected |
Implemented in SCR_CampaignFactionCommanderPlayerComponent.
|
protected |
Implemented in SCR_CampaignFactionCommanderPlayerComponent.
| void SCR_FactionCommanderPlayerComponent.OnOwnershipChanged | ( | bool | changing, |
| bool | becameOwner ) |
| override void SCR_FactionCommanderPlayerComponent.OnPostInit | ( | IEntity | owner | ) |
|
protected |
Called each time the radial menu is before open in the map.
Implemented in SCR_CampaignFactionCommanderPlayerComponent.
|
protected |
Called each time the radial menu is closed in the map.
|
protected |
Called each time the radial menu is open in the map.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_FactionCommanderPlayerComponent.SetNextVolunteeringTimestamp | ( | WorldTimestamp | timestamp | ) |
| void SCR_FactionCommanderPlayerComponent.SetReplaceCommanderCooldownTimestamp | ( | WorldTimestamp | timeStamp | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
staticprotected |
|
static |