|
| override bool | GetMaxBudgetValue (EEditableEntityBudget type, out int maxBudget) |
| | Get max budget for this player per budget type.
|
| |
| override int | GetCurrentBudgetValue (EEditableEntityBudget type) |
| | Get last received budget value for type.
|
| |
| int | GetProviderMaxValue (EEditableEntityBudget budget) |
| |
| bool | HasCooldownTime () |
| | Return current cooldown timer state.
|
| |
| int | GetCooldownTime () |
| |
| SCR_ECharacterRank | GetUserRank () |
| |
| override bool | CanPlaceEntitySource (IEntityComponentSource editableEntitySource, out EEditableEntityBudget blockingBudget, bool isPlacingPlayer=false, bool updatePreview=true, bool showNotification=true) |
| | Checks if budget is sufficient to place passed EditableEntityComponentClass source.
|
| |
| void | CanPlaceOwnerCampaignBuilding (bool canPlace, EEditableEntityBudget blockingBudget) |
| |
| override bool | GetMaxBudget (EEditableEntityBudget type, out SCR_EntityBudgetValue budget) |
| |
| override bool | CanPlace (notnull array< ref SCR_EntityBudgetValue > budgetCosts, out EEditableEntityBudget blockingBudget) |
| | Checks if budget is sufficient using passed budget costs.
|
| |
| bool | IsBudgetCapEnabled (EEditableEntityBudget blockingBudget) |
| | Check if the given budget is on the list of budgets used by a provider.
|
| |
| override bool | GetEntityPreviewBudgetCosts (SCR_EditableEntityUIInfo entityUIInfo, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| bool | CanPlaceEntityInfo (SCR_EditableEntityUIInfo info, out EEditableEntityBudget blockingBudget, bool showNotification) |
| | Checks if budget is sufficient to place passed entity.
|
| |
| bool | CanPlaceEntityInfo (SCR_EditableEntityUIInfo info, out notnull array< ref SCR_EntityBudgetValue > budgetCosts, out EEditableEntityBudget blockingBudget, bool showNotification) |
| | Checks if budget is sufficient to place passed entity.
|
| |
| void | GetBudgetCosts (IEntityComponentSource editableEntitySource, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| void | GetBudgetCostsDontDiscardCampaignBudget (IEntityComponentSource editableEntitySource, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| bool | GetEntityPreviewBudgetCostsDontDiscardCampaignBudget (SCR_EditableEntityUIInfo entityUIInfo, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| bool | GetEntitySourcePreviewBudgetCosts (IEntityComponentSource editableEntitySource, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| bool | GetVehicleOccupiedBudgetCosts (IEntityComponentSource editableEntitySource, EEditorPlacingFlags placingFlags, out notnull array< ref SCR_EntityBudgetValue > budgetCosts, bool includeVehicleCost=true) |
| | Return the cost of the occupants for a vehicle.
|
| |
| bool | GetVehicleOccupiedBudgetCosts (SCR_EditableVehicleUIInfo editableUIInfo, EEditorPlacingFlags placingFlags, out notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| void | UpdatePreviewCost (notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| void | ResetPreviewCost () |
| |
| void | SetMaxBudgetValue (EEditableEntityBudget type, int newValue) |
| | Set max budget for this player for budget type.
|
| |
| void | DelayedSetMaxBudgetSetup (EEditableEntityBudget type, int newValue, int playerChangingBudget) |
| |
| void | SetMultiMaxBudgetValues (notnull map< EEditableEntityBudget, int > budgets, int playerChangingBudget) |
| |
| void | GetEntityTypeBudgetCost (EEditableEntityType entityType, out array< ref SCR_EntityBudgetValue > budgetCosts) |
| | Gets the minimun cost of the given entity type.
|
| |
| void | SetCurrentBudgetValue (EEditableEntityBudget budgetType, int value) |
| | Set current budget value.
|
| |
| bool | GetCurrentBudgetInfo (EEditableEntityBudget budgetType, out SCR_UIInfo blockingBudgetInfo) |
| | Get current settings of budget with given type.
|
| |
| void | GetBudgets (out notnull array< ref SCR_EditableEntityCoreBudgetSetting > budgets) |
| |
| SCR_EditableEntityCoreBudgetSetting | GetBudgetSetting (EEditableEntityBudget budgetType) |
| |
| void | DemandBudgetUpdateFromServer () |
| |
| void | RpcServer_UpdateBudget () |
| |
| void | RpcOwner_UpdateBudget (EEditableEntityBudget budgetType, int currentBudget) |
| |
| void | ~SCR_BudgetEditorComponent () |
| |
| void | OnInitBase () |
| |
| void | OnDeleteBase () |
| |
| void | OnRequestBase (bool isOpen) |
| |
| void | OnOpenedBase () |
| |
| void | OnClosedBase () |
| |
| void | OnPreActivateBase () |
| |
| void | OnActivateBase () |
| |
| bool | OnActivateAsyncBase (int attempt) |
| |
| void | OnPostActivateBase () |
| |
| void | OnDeactivateBase () |
| |
| void | OnPostDeactivateBase () |
| |
| bool | OnDeactivateAsyncBase (int attempt) |
| |
| void | OnEffectBase (SCR_BaseEditorEffect effect) |
| |
| SCR_EditorManagerEntity | GetManager () |
| | Get editor manager this component belongs to.
|
| |
| SCR_BaseEditorComponent | FindEditorComponent (TypeName type, bool showError=false, bool modeFirst=false) |
| | Get the editor manager to which this component belongs.
|
| |
| EntityComponentPrefabData | GetEditorComponentData () |
| | Get prefab data of this component.
|
| |
| bool | IsRemoved () |
| | Check if the component is being deleted.
|
| |
| void | ResetEditorComponent () |
| | Reset values controlled by the component.
|
| |
| ScriptInvoker | GetOnEffect () |
| | Get event called when an effect is activated.
|
| |
| void | InitServer () |
| |
| void | InitOwner () |
| |
| override void | OnPostInit (IEntity owner) |
| |
| void | SCR_BaseEditorComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
| |
| void | ~SCR_BaseEditorComponent () |
| |
|
| override void | EOnEditorActivateServer () |
| | When the component is activated (called on server)
|
| |
| override void | EOnEditorActivate () |
| | When the component is activated.
|
| |
| override void | EOnEditorDeactivate () |
| | When the component is deactivated.
|
| |
| void | OnResourceTypeEnabledChanged (array< EResourceType > disabledResourceTypes) |
| |
| bool | RefreshSuppliesComponent () |
| |
| void | OnBaseResourcesChanged (SCR_ResourceConsumer consumer, int previousValue) |
| |
| void | OnBaseSuppliesChanged (int supplies) |
| |
| void | OnTargetBaseChanged (IEntity targetEntity) |
| |
| bool | CanEstablishBase () |
| |
| override void | OnEntityCoreBudgetUpdatedOwner (EEditableEntityBudget entityBudget, int budgetValue, int budgetChange, bool sendBudgetMaxEvent, bool budgetMaxReached) |
| |
| bool | RefreshResourcesComponent () |
| |
| override void | RefreshBudgetSettings () |
| | Get default budget definitions from core, budget values not synced on client, use GetCurrentBudget for updated budget.
|
| |
| bool | CanPlaceResultCampaignBuilding (bool canPlace, bool showNotification, EEditableEntityBudget blockingBudget) |
| |
| bool | CanPlaceEntityType (EEditableEntityType entityType, out notnull array< ref SCR_EntityBudgetValue > budgetCosts, out EEditableEntityBudget blockingBudget) |
| | Fallback function in case no budget costs are defined on the entity.
|
| |
| bool | CanPlace (SCR_EntityBudgetValue budgetCost, out EEditableEntityBudget blockingBudget) |
| |
| bool | CanPlace (int currentBudget, int budgetChange, int maxBudget) |
| |
| bool | IsBudgetAvailable (EEditableEntityBudget type) |
| |
| bool | GetMaxBudget_Old (EEditableEntityBudget type, out SCR_EntityBudgetValue budget) |
| |
| void | DelayedSetMaxBudget (int playerChangingBudget) |
| |
| int | GetEntityTypeBudgetCost (EEditableEntityBudget budgetType) |
| |
| bool | GetCurrentBudgetSettings (EEditableEntityBudget budgetType, out SCR_EditableEntityCoreBudgetSetting budgetSettings) |
| |
| void | UpdateMaxBudgetOwner (int budgetType, int oldMaxBudget, int newMaxBudget) |
| |
| bool | CanPlaceResult (bool canPlace, bool showNotification) |
| |
| void | CanPlaceOwner (bool canPlace) |
| |
| void | OnEntityCoreBudgetUpdated (EEditableEntityBudget entityBudget, int originalBudgetValue, int budgetChange, int updatedBudgetValue) |
| |
| bool | CheckMaxBudgetReached (EEditableEntityBudget entityBudget, int budgetChange, int originalBudgetValue, int updatedBudgetValue, int maxBudgetValue, out bool maxBudgetReached) |
| |
| void | FilterAvailableBudgets (inout notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| void | FilterAvailableBudgetsDontDiscardCampaignBudget (inout notnull array< ref SCR_EntityBudgetValue > budgetCosts) |
| |
| EEditableEntityBudget | GetFirstAvailableBudget () |
| |
| bool | IsBudgetCapEnabled () |
| |
| override void | EOnEditorDebug (array< string > debugTexts) |
| | Every frame while the editor is opened and debug menu is shown.
|
| |
| override void | EOnEditorInitServer () |
| | When the entity is created (called on server)
|
| |
| override void | EOnEditorDeleteServer () |
| | When the entity is destroyed (called on server)
|
| |
| override void | EOnEditorInit () |
| | When the entity is created.
|
| |
| bool | IsOnEditorManager () |
| |
| bool | IsOwner () |
| |
| bool | IsProxy () |
| |
| bool | IsMaster () |
| |
| bool | IsAdmin () |
| |
| SCR_BaseEditorComponent | GetParentComponent () |
| |
| void | SetParentComponent (SCR_BaseEditorComponent parent) |
| |
| void | SendNotification (ENotification notificationID, int selfID=0, int targetID=0, vector position=vector.Zero) |
| |
| void | EOnEditorDelete () |
| | When the entity is destroyed.
|
| |
| void | EOnEditorRequest (bool isOpen) |
| | When opening/closing request is sent to server.
|
| |
| void | EOnEditorOpen () |
| | When the editor is opened.
|
| |
| void | EOnEditorClose () |
| | When the editor is closed.
|
| |
| void | EOnEditorPreActivate () |
| | Before the component is activated.
|
| |
| bool | EOnEditorActivateAsync (int attempt) |
| | When the component is activated.
|
| |
| void | EOnEditorPostActivate () |
| | When the component is activated, but after EOnEditorActivate() function was called in all components.
|
| |
| bool | EOnEditorDeactivateAsync (int attempt) |
| | When the component is deactivated.
|
| |
| void | EOnEditorPostDeactivate () |
| | When the component is deactivated, but after the next mode is activated.
|
| |
| void | EOnEffect (SCR_BaseEditorEffect effect) |
| | When an effect is created in reaction an an event.
|
| |
| void | EOnEditorOpenServer () |
| | When the editor is opened (called on server)
|
| |
| void | EOnEditorOpenServerCallback () |
| | When the editor is opened (called on server after async loading finished on client)
|
| |
| void | EOnEditorCloseServer () |
| | When the editor is closed (called on server)
|
| |
| void | EOnEditorCloseServerCallback () |
| | When the editor is closed (called on server after async loading finished on client)
|
| |
| void | EOnEditorDeactivateServer () |
| | When the component is deactivated (called on server)
|
| |