Arma Reforger Script API
|
Editor settings to override default values in SCR_EditorManagerCore. More...
Public Member Functions | |
ResourceName | GetPrefab (ResourceName basePrefab) |
Get editor manager prefab. | |
bool | IsEditorDisabled () |
Check if editor is disabled. | |
bool | IsUnlimitedEditorLegal () |
Check if unlimited editor (e.g, Game Master) is legal in this scenario, i.e., part of game rules. | |
void | EnableBaseOverride (bool value) |
When set to true, connecting players will receive editor modes define by these settings, instead of use defaults from SCR_EditorManagerCore. | |
bool | IsBaseOverrideEnabled () |
Check if base editor modes are overridden. | |
bool | GetBaseModes (out EEditorMode modes=0) |
Get base editor modes in this world. | |
void | SetBaseModes (EEditorMode modes, bool validate=true) |
Set base editor modes in this world. | |
bool | GetSkipStreamingRules (notnull array< EEditableEntityType > skipStreamingRules) |
Get which EEditableEntityType to not stream in to client when he opens editor. | |
void | SCR_EditorSettingsEntity (IEntitySource src, IEntity parent) |
Public Member Functions inherited from SCR_EditorBaseEntity | |
bool | IsOpened () |
Check if editor is currently opened. | |
SCR_EditorManagerEntity | GetManager () |
Get editor manager. | |
int | FindEditorComponents (out array< SCR_BaseEditorComponent > outComponents) |
Get all editor components. | |
ScriptInvoker | GetOnInit () |
Get event which is called when editor is initialized. | |
ScriptInvoker | GetOnRequest () |
Get event which is called when a request to open/close the editor is sent to server. | |
ScriptInvoker | GetOnOpened () |
Get event which is called when editor is opened. | |
ScriptInvoker | GetOnPreActivate () |
Get event which is called before the entity is activated. | |
ScriptInvoker | GetOnActivate () |
Get event which is called when the entity is activated. | |
ScriptInvoker | GetOnPostActivate () |
Get event which is called when the entity is activated, but after all GetOnActivate() functions were called. | |
ScriptInvoker | GetOnDeactivate () |
Get event which is called when the entity is deactivated. | |
ScriptInvoker | GetOnClosed () |
Get event which is called when the editor is closed. | |
ScriptInvoker | GetOnDebug () |
Get event which is called every frame when debug is active. | |
ScriptInvoker | GetOnOpenedServer () |
Get event which is called when editor is initialized. | |
ScriptInvoker | GetOnOpenedServerCallback () |
Get event which is called when editor is initialized. | |
ScriptInvoker | GetOnClosedServer () |
Get event which is called when editor is initialized. | |
ScriptInvoker | GetOnClosedServerCallback () |
Get event which is called when editor is initialized and async loading finishes. | |
ScriptInvoker | GetOnActivateServer () |
Get event which is called when the entity is activated. | |
ScriptInvoker | GetOnDeactivateServer () |
Get event which is called when the entity is deactivated. | |
Static Public Member Functions | |
static SCR_EditorSettingsEntity | GetInstance () |
Protected Attributes | |
ResourceName | m_EditorManagerPrefab |
bool | m_bDisableEditor |
bool | m_bIsUnlimitedEditorLegal |
bool | m_bOverrideBaseModes |
EEditorMode | m_BaseModes |
ref array< EEditableEntityType > | m_SkipStreamingRules |
Additional Inherited Members | |
Protected Member Functions inherited from SCR_EditorBaseEntity | |
void | InitComponents (bool isServer) |
void | InitComponent (SCR_BaseEditorComponent component, bool isServer) |
Editor settings to override default values in SCR_EditorManagerCore.
void SCR_EditorSettingsEntity.SCR_EditorSettingsEntity | ( | IEntitySource | src, |
IEntity | parent | ||
) |
void SCR_EditorSettingsEntity.EnableBaseOverride | ( | bool | value | ) |
When set to true, connecting players will receive editor modes define by these settings, instead of use defaults from SCR_EditorManagerCore.
\value True to enable override
bool SCR_EditorSettingsEntity.GetBaseModes | ( | out EEditorMode | modes = 0 | ) |
Get base editor modes in this world.
modes | Variable to be filled with editor mode flags. |
|
static |
ResourceName SCR_EditorSettingsEntity.GetPrefab | ( | ResourceName | basePrefab | ) |
Get editor manager prefab.
basePrefab | Prefab used when the entity doesn't define custom prefab |
bool SCR_EditorSettingsEntity.GetSkipStreamingRules | ( | notnull array< EEditableEntityType > | skipStreamingRules | ) |
Get which EEditableEntityType to not stream in to client when he opens editor.
skipStreamingRules | The array of EEditableEntityType for which to skip streaming logic. |
bool SCR_EditorSettingsEntity.IsBaseOverrideEnabled | ( | ) |
Check if base editor modes are overridden.
bool SCR_EditorSettingsEntity.IsEditorDisabled | ( | ) |
Check if editor is disabled.
FOR DEVELOPMENT PURPOSES ONLY!
bool SCR_EditorSettingsEntity.IsUnlimitedEditorLegal | ( | ) |
Check if unlimited editor (e.g, Game Master) is legal in this scenario, i.e., part of game rules.
For example this is enabled in Game Master scenarios which are about GM building the gameplay, but it's disabled in Conflict where only admin can access the editor.
void SCR_EditorSettingsEntity.SetBaseModes | ( | EEditorMode | modes, |
bool | validate = true |
||
) |
Set base editor modes in this world.
modes | Editor mode flags. |
validate | When true, remove non-base modes from already existing editor managers |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |