|
| override void | OnMapOpen (MapConfiguration config) |
| |
| override void | OnMapClose (MapConfiguration config) |
| |
| SCR_CampaignMilitaryBaseComponent | GetHoveredBase () |
| |
| override void | ClearRadialMenu () |
| |
| override void | OnEntryHovered (SCR_SelectionMenuEntry entry, int id) |
| | Triggered when a radial menu entry is hovered on.
|
| |
| void | CreateCampaignMilitaryBaseTask (ResourceName taskPrefab, SCR_AIGroup group, int playerId, SCR_FactionCommanderBaseMenuHandler handler=null, vector positionOffset=vector.Zero) |
| | Create campaign military base task.
|
| |
| void | CheatCommander () |
| | Cheat method to set a local player as commander.
|
| |
| void | SetSuppliesLimit (notnull SCR_CampaignMilitaryBaseComponent base, float value) |
| | Sets the supply limit for a given campaign military base.
|
| |
| void | SetReservedSupplyAmount (notnull SCR_CampaignMilitaryBaseComponent base, float value) |
| | Sets the reserved supply amount for a specified campaign military base.
|
| |
| void | SetSupplyRequestExecutionPriority (notnull SCR_CampaignMilitaryBaseComponent base, int priority) |
| | Sets the supply request execution priority for a specified campaign military base.
|
| |
Public Member Functions inherited from SCR_FactionCommanderPlayerComponent |
| 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) |
| |
|
| SCR_CommanderGraphLinesData | GetGraphLinesData () |
| |
| void | OnBaseHovered (SCR_CampaignMilitaryBaseComponent base) |
| |
| override void | OnRadialMenuBeforeOpen () |
| | Called each time the radial menu is before open in the map.
|
| |
| void | LinkBaseWithGroup (notnull SCR_AIGroup group) |
| | Draw a map link from a base to a group leader.
|
| |
| void | ClearAllLinks () |
| | Remove all existing map links.
|
| |
| void | RpcAsk_CreateCampaignMilitaryBaseTask (ResourceName taskPrefab, int assigneeId, int factionIndex, int playerId, int data, int baseCallsign, vector positionOffset) |
| |
| void | RpcAsk_CheatCommander (int playerId) |
| |
| void | RpcAsk_SetSuppliesLimit (int baseCallsign, float value) |
| |
| void | RpcAsk_SetReservedSupplyAmount (int baseCallsign, float value) |
| |
| void | RpcAsk_SetSupplyRequestExecutionPriority (int baseCallsign, int priority) |
| |
Protected Member Functions inherited from SCR_FactionCommanderPlayerComponent |
| 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 | 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 | 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 | 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 | OnTaskHovered (SCR_Task task) |
| |
| bool | IsTaskValid (SCR_Task task) |
| |
| void | ProcessEvents (bool activate) |
| |