|
Arma Reforger Script API
|
Base class for editor components. More...
Public Member Functions | |
| 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 () |
Static Public Member Functions | |
| static Managed | GetInstance (TypeName type, bool showError=false, bool modeFirst=false) |
| Get the local instance of a component attached on editor manager (SCR_EditorManagerEntity). | |
| static Managed | GetInstance (SCR_EditorBaseEntity editorManager, TypeName type, bool showError=false) |
| Get instance of a component attached on specific editor manager / mode (SCR_EditorBaseEntity). | |
| static int | GetAllInstances (TypeName type, out notnull array< Managed > outComponents) |
| Get component instances on editor manager (SCR_EditorBaseEntity) and all its modes (SCR_EditorModeEntity). | |
Protected Member Functions | |
| 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) |
Template Methods (Owner) | |
Methods to be overridden by child classes, called where the editor is local. | |
| void | EOnEditorInit () |
| When the entity is created. | |
| 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. | |
| void | EOnEditorActivate () |
| When 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. | |
| void | EOnEditorDeactivate () |
| When the component is deactivated. | |
| bool | EOnEditorDeactivateAsync (int attempt) |
| When the component is deactivated. | |
| void | EOnEditorPostDeactivate () |
| When the component is deactivated, but after the next mode is activated. | |
| void | EOnEditorDebug (array< string > debugTexts) |
| Every frame while the editor is opened and debug menu is shown. | |
| void | EOnEffect (SCR_BaseEditorEffect effect) |
| When an effect is created in reaction an an event. | |
Template Methods (Server) | |
Methods to be overridden by child classes, called on server. | |
| void | EOnEditorInitServer () |
| When the entity is created (called on server) | |
| void | EOnEditorDeleteServer () |
| When the entity is destroyed (called on server) | |
| 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 | EOnEditorActivateServer () |
| When the component is activated (called on server) | |
| void | EOnEditorDeactivateServer () |
| When the component is deactivated (called on server) | |
Protected Attributes | |
| SCR_EditorBaseEntity | m_Owner |
| SCR_EditorManagerEntity | m_Manager |
| SCR_BaseEditorComponent | m_Parent |
| RplComponent | m_RplComponent |
Base class for editor components.
| void SCR_BaseEditorComponent.SCR_BaseEditorComponent | ( | IEntityComponentSource | src, |
| IEntity | ent, | ||
| IEntity | parent ) |
| [in] | src | |
| [in] | ent | |
| [in] | parent |
| void SCR_BaseEditorComponent.~SCR_BaseEditorComponent | ( | ) |
|
protected |
When the component is activated.
Implemented in SCR_AccessKeysEditorComponent, SCR_ActionsRadialMenuEditorComponent, SCR_AttributesManagerEditorComponent, SCR_BaseActionsEditorComponent, SCR_BudgetEditorComponent, SCR_CameraLimitedEditorComponent, SCR_CampaignBuildingBudgetEditorComponent, SCR_CampaignBuildingEditorComponent, SCR_CampaignBuildingPlacingEditorComponent, SCR_CampaignBuildingPlacingObstructionEditorComponent, SCR_CampaignBuildingTransformingEditorComponent, SCR_CommandActionsEditorComponent, SCR_ContentBrowserEditorComponent, SCR_ContextActionsEditorComponent, SCR_DebugEditorComponent, SCR_EntitiesManagerEditorComponent, SCR_HintEditorComponent, SCR_MenuEditorComponent, SCR_MenuOverlaysEditorComponent, SCR_PlacingEditorComponent, SCR_PreviewEntityEditorComponent, SCR_TestEditorComponent, SCR_ToolbarActionsEditorComponent, SCR_TransformingEditorComponent, and SCR_WorldEntityDelegateEditorComponent.
|
protected |
When the component is activated.
Asynchronous, can take multiple frames in case of complex operations.
| [in] | attempt | Number of previous attempts to activate the component. |
Implemented in SCR_ContentBrowserEditorComponent, SCR_EntitiesManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the component is activated (called on server)
Implemented in SCR_CampaignBuildingBudgetEditorComponent, SCR_CampaignBuildingPlacingEditorComponent, SCR_CampaignBuildingPlacingObstructionEditorComponent, SCR_ContentBrowserEditorComponent, SCR_DynamicSimulationEditorComponent, SCR_ServerInfoEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is closed.
Implemented in SCR_CampaignBuildingPlacingEditorComponent, SCR_CampaignBuildingPlacingHQBaseEditorComponent, SCR_CampaignBuildingPlacingObstructionEditorComponent, SCR_EditorVONControllerComponent, SCR_HintEditorComponent, SCR_LayersEditorComponent, SCR_MenuEditorComponent, SCR_PauseGameTimeEditorComponent, SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is closed (called on server)
Implemented in SCR_CampaignBuildingEditorComponent, SCR_HighlightedEditorComponent, SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is closed (called on server after async loading finished on client)
Implemented in SCR_TestEditorComponent.
|
protected |
When the component is deactivated.
Implemented in SCR_AttributesManagerEditorComponent, SCR_BaseActionsEditorComponent, SCR_CameraEditorComponent, SCR_CameraFiltersEditorComponent, SCR_CameraLimitedEditorComponent, SCR_CameraParticlesEditorComponent, SCR_CampaignBuildingBudgetEditorComponent, SCR_CampaignBuildingEditorComponent, SCR_CommandActionsEditorComponent, SCR_ContentBrowserEditorComponent, SCR_ContextActionsEditorComponent, SCR_DebugEditorComponent, SCR_EntitiesManagerEditorComponent, SCR_HintEditorComponent, SCR_MenuEditorComponent, SCR_MenuOverlaysEditorComponent, SCR_PlacingEditorComponent, SCR_PreviewEntityEditorComponent, SCR_TestEditorComponent, SCR_ToolbarActionsEditorComponent, SCR_TransformingEditorComponent, and SCR_WorldEntityDelegateEditorComponent.
|
protected |
When the component is deactivated.
Asynchronous, can take multiple frames in case of complex operations.
| [in] | attempt | Number of previous attempts to deactivate the component. |
Implemented in SCR_EntitiesManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the component is deactivated (called on server)
Implemented in SCR_CampaignBuildingPlacingEditorComponent, SCR_ContentBrowserEditorComponent, SCR_DynamicSimulationEditorComponent, SCR_ServerInfoEditorComponent, and SCR_TestEditorComponent.
|
protected |
Every frame while the editor is opened and debug menu is shown.
Implemented in SCR_AccessKeysEditorComponent, SCR_BudgetEditorComponent, SCR_DebugEditorComponent, SCR_EntitiesManagerEditorComponent, SCR_LayersEditorComponent, SCR_MenuOverlaysEditorComponent, SCR_PlacingEditorComponent, SCR_PreviewEntityEditorComponent, SCR_StatesEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the entity is destroyed.
Implemented in SCR_AccessKeysEditorComponent, SCR_ActionsRadialMenuEditorComponent, SCR_InputLayoutEditorComponent, SCR_LayersEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the entity is destroyed (called on server)
Implemented in SCR_BudgetEditorComponent, SCR_PlacingEditorComponent, SCR_PlayerDelegateEditorComponent, SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the entity is created.
Implemented in SCR_AccessKeysEditorComponent, SCR_AttributesManagerEditorComponent, SCR_BudgetEditorComponent, SCR_CameraEditorComponent, SCR_CameraFiltersEditorComponent, SCR_ContentBrowserEditorComponent, SCR_EntitiesManagerEditorComponent, SCR_InputLayoutEditorComponent, SCR_LayersEditorComponent, SCR_MenuEditorComponent, SCR_MusicEditorComponent, SCR_PauseGameTimeEditorComponent, SCR_PlayersManagerEditorComponent, SCR_PreviewEntityEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the entity is created (called on server)
Implemented in SCR_AttributesManagerEditorComponent, SCR_BudgetEditorComponent, SCR_PlacingEditorComponent, SCR_PlayerDelegateEditorComponent, SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is opened.
Implemented in SCR_CampaignBuildingPlacingEditorComponent, SCR_CampaignBuildingPlacingHQBaseEditorComponent, SCR_CampaignBuildingPlacingObstructionEditorComponent, SCR_EditorVONControllerComponent, SCR_LayersEditorComponent, SCR_PauseGameTimeEditorComponent, SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is opened (called on server)
Implemented in SCR_CampaignBuildingEditorComponent, SCR_CampaignBuildingPlacingEditorComponent, SCR_CampaignBuildingPlacingObstructionEditorComponent, SCR_HighlightedEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the editor is opened (called on server after async loading finished on client)
Implemented in SCR_PlayersManagerEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the component is activated, but after EOnEditorActivate() function was called in all components.
Implemented in SCR_CameraEditorComponent, SCR_CameraFiltersEditorComponent, SCR_CameraParticlesEditorComponent, SCR_DebugEditorComponent, SCR_MenuEditorComponent, SCR_MenuLayoutEditorComponent, SCR_MenuOverlaysEditorComponent, and SCR_TestEditorComponent.
|
protected |
When the component is deactivated, but after the next mode is activated.
Implemented in SCR_CameraEditorComponent, SCR_MenuLayoutEditorComponent, and SCR_TestEditorComponent.
|
protected |
Before the component is activated.
Implemented in SCR_CameraEditorComponent, SCR_CameraLimitedEditorComponent, and SCR_TestEditorComponent.
|
protected |
When opening/closing request is sent to server.
Implemented in SCR_TestEditorComponent.
|
protected |
When an effect is created in reaction an an event.
Implemented in SCR_PingEditorComponent, and SCR_TestEditorComponent.
| SCR_BaseEditorComponent SCR_BaseEditorComponent.FindEditorComponent | ( | TypeName | type, |
| bool | showError = false, | ||
| bool | modeFirst = false ) |
Get the editor manager to which this component belongs.
| [in] | type | |
| [in] | showError | |
| [in] | modeFirst |
|
static |
Get component instances on editor manager (SCR_EditorBaseEntity) and all its modes (SCR_EditorModeEntity).
| [in] | type | Requested component type |
| [out] | outComponents | Array to be filled with components |
| EntityComponentPrefabData SCR_BaseEditorComponent.GetEditorComponentData | ( | ) |
Get prefab data of this component.
|
static |
Get instance of a component attached on specific editor manager / mode (SCR_EditorBaseEntity).
When not found on editor manager, it will be searched for in current editor mode (SCR_EditorModeEntity).
| [in] | editorManager | Editor manager or mode which is searched |
| [in] | type | Requested component type |
| [in] | showError | True to log a warning message when the component was not found (useful when the component is required by a script) |
|
static |
Get the local instance of a component attached on editor manager (SCR_EditorManagerEntity).
When not found on editor manager, it will be searched for in current editor mode (SCR_EditorModeEntity).
| [in] | type | Requested component type |
| [in] | showError | True to log a warning message when the component was not found |
| [in] | modeFirst | When true, search the component first on editor mode and then on editor manager. By default it's false, the other way around. |
| SCR_EditorManagerEntity SCR_BaseEditorComponent.GetManager | ( | ) |
Get editor manager this component belongs to.
| ScriptInvoker SCR_BaseEditorComponent.GetOnEffect | ( | ) |
Get event called when an effect is activated.
|
protected |
| void SCR_BaseEditorComponent.InitOwner | ( | ) |
| void SCR_BaseEditorComponent.InitServer | ( | ) |
|
protected |
Implemented in SCR_AccessKeysEditorComponent.
|
protected |
|
protected |
|
protected |
|
protected |
| bool SCR_BaseEditorComponent.IsRemoved | ( | ) |
Check if the component is being deleted.
|
sealed |
| [in] | attempt |
|
sealed |
|
sealed |
|
sealed |
| [in] | attempt |
|
sealed |
|
sealed |
|
sealed |
| [in] | effect |
|
sealed |
|
sealed |
|
sealed |
|
sealed |
| override void SCR_BaseEditorComponent.OnPostInit | ( | IEntity | owner | ) |
Implemented in SCR_MapEditorComponent.
|
sealed |
|
sealed |
| [in] | isOpen |
| void SCR_BaseEditorComponent.ResetEditorComponent | ( | ) |
Reset values controlled by the component.
To be overridden by child classes.
Implemented in SCR_CameraEditorComponent, SCR_CameraFiltersEditorComponent, and SCR_MenuOverlaysEditorComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |