Editor entities manage functionality of the editor.
More...
|
| enum | EEditableEntityInteraction { EEditableEntityInteraction.NONE
, EEditableEntityInteraction.LAYER
, EEditableEntityInteraction.SLOT
, EEditableEntityInteraction.PASSENGER
} |
| | Type of suggested interaction when hovering edited entity on top of another entity. More...
|
| |
| enum | EEditableEntityInteractionFlag {
EEditableEntityInteractionFlag.ALIVE = 1 << 0
, EEditableEntityInteractionFlag.DELEGATE = 1 << 1
, EEditableEntityInteractionFlag.LAYER_EDITING = 1 << 2
, EEditableEntityInteractionFlag.NON_PLAYABLE = 1 << 3
,
EEditableEntityInteractionFlag.PLACING = 1 << 4
} |
| | Details of entity interaction. More...
|
| |
| enum | EEditorCanClose { EEditorCanClose.SCRIPT = 1
} |
| | Layers allowing editor to be closed. All of them have to be activated. More...
|
| |
| enum | EEditorCanOpen { EEditorCanOpen.SCRIPT = 1
, EEditorCanOpen.ALIVE = 2
, EEditorCanOpen.MODES = 4
} |
| | Layers allowing editor to be opened. All of them have to be activated (certain exceptions may apply when the editor is in unlimited mode) More...
|
| |
| enum | EEditorCommandActionFlags { EEditorCommandActionFlags.WAYPOINT = 1
, EEditorCommandActionFlags.OBJECTIVE = 2
, EEditorCommandActionFlags.IS_QUEUE = 4
, EEditorCommandActionFlags.ATTACH = 8
} |
| | Simplified action conditions. More...
|
| |
| enum | EEditorEvent {
EEditorEvent.NONE
, EEditorEvent.INIT
, EEditorEvent.REQUEST_OPEN
, EEditorEvent.REQUEST_CLOSE
,
EEditorEvent.DELETE
, EEditorEvent.OPEN
, EEditorEvent.OPEN_ALL
, EEditorEvent.PRE_ACTIVATE
,
EEditorEvent.DEACTIVATE
, EEditorEvent.DEACTIVATE_ASYNC
, EEditorEvent.ACTIVATE
, EEditorEvent.ACTIVATE_ASYNC
,
EEditorEvent.POST_DEACTIVATE
, EEditorEvent.POST_ACTIVATE
, EEditorEvent.CLOSE
, EEditorEvent.UPDATE_MODE
,
EEditorEvent.EXIT_OPERATION
} |
| | Editor event processed in components. More...
|
| |
| enum | EEditorEventOperation {
EEditorEventOperation.NONE
, EEditorEventOperation.INIT
, EEditorEventOperation.REQUEST_OPEN
, EEditorEventOperation.OPEN
,
EEditorEventOperation.REQUEST_CLOSE
, EEditorEventOperation.CLOSE
, EEditorEventOperation.MODE_CHANGE
, EEditorEventOperation.MODE_CREATE
,
EEditorEventOperation.MODE_DELETE
, EEditorEventOperation.DELETE
} |
| | Type of event-processing operation. More...
|
| |
| enum | EEditorMode {
EEditorMode.EDIT = 1
, EEditorMode.STRATEGY = 1 << 1
, EEditorMode.SPECTATE = 1 << 2
, EEditorMode.PHOTO = 1 << 3
,
EEditorMode.ADMIN = 1 << 4
, EEditorMode.BUILDING = 1 << 5
, EEditorMode.PHOTO_SAVE = 1 << 6
} |
| | Editor mode that defines overall functionality. More...
|
| |
| enum | EEditorState {
EEditorState.NONE
, EEditorState.SELECTING
, EEditorState.MULTI_SELECTING
, EEditorState.PLACING
,
EEditorState.TRANSFORMING
} |
| | Unique editor state. More...
|
| |
| enum | EEditorTransformSnap { EEditorTransformSnap.NONE
, EEditorTransformSnap.TERRAIN
, EEditorTransformSnap.GEOMETRY
} |
| | Vertical snapping rules. More...
|
| |
| enum | EEditorTransformVertical { EEditorTransformVertical.SEA = 1 << 0
, EEditorTransformVertical.TERRAIN = 1 << 1
, EEditorTransformVertical.GEOMETRY = 1 << 2
} |
| | Vertical transformation mode. More...
|
| |
Editor entities manage functionality of the editor.
Structure
For the editor to function propertly, it must be configured in the following structure. All entities must be saved into a prefabs and linked in attributes mentioned below.
Execution Order
Functions in relevant classes are called in the following order.
◆ EEditableEntityInteraction
Type of suggested interaction when hovering edited entity on top of another entity.
| Enumerator |
|---|
| NONE | Simple transform.
|
| LAYER | Open layer.
|
| SLOT | Attach to slot.
|
| PASSENGER | Place as passenger of vehicle. Used by context action SCR_ChooseAndSpawnOccupantsContextAction not placing opperation.
|
◆ EEditableEntityInteractionFlag
Details of entity interaction.
| Enumerator |
|---|
| ALIVE | Entity and target are not destroyed, or cannot be destroyed.
|
| DELEGATE | Hovering over delegate, i.e., icon, not mesh.
|
| LAYER_EDITING | Layer editing is enabled.
|
| NON_PLAYABLE | Entity is not a player.
|
| PLACING | Current operation is placing.
|
◆ EEditorCanClose
Layers allowing editor to be closed. All of them have to be activated.
| Enumerator |
|---|
| SCRIPT | Set by script.
|
◆ EEditorCanOpen
Layers allowing editor to be opened. All of them have to be activated (certain exceptions may apply when the editor is in unlimited mode)
| Enumerator |
|---|
| SCRIPT | Set by script.
|
| ALIVE | When alive.
|
| MODES | At least one editor mode available.
|
◆ EEditorCommandActionFlags
Simplified action conditions.
| Enumerator |
|---|
| WAYPOINT | Can place waypoint.
|
| OBJECTIVE | Can place objective.
|
| IS_QUEUE | |
| ATTACH | |
◆ EEditorEvent
Editor event processed in components.
| Enumerator |
|---|
| NONE | |
| INIT | |
| REQUEST_OPEN | |
| REQUEST_CLOSE | |
| DELETE | |
| OPEN | |
| OPEN_ALL | |
| PRE_ACTIVATE | |
| DEACTIVATE | |
| DEACTIVATE_ASYNC | |
| ACTIVATE | |
| ACTIVATE_ASYNC | |
| POST_DEACTIVATE | |
| POST_ACTIVATE | |
| CLOSE | |
| UPDATE_MODE | |
| EXIT_OPERATION | |
◆ EEditorEventOperation
Type of event-processing operation.
| Enumerator |
|---|
| NONE | |
| INIT | |
| REQUEST_OPEN | |
| OPEN | |
| REQUEST_CLOSE | |
| CLOSE | |
| MODE_CHANGE | |
| MODE_CREATE | |
| MODE_DELETE | |
| DELETE | |
◆ EEditorMode
Editor mode that defines overall functionality.
| Enumerator |
|---|
| EDIT | Editing and placing entities, configuring attributes.
|
| STRATEGY | Commanding AI and players.
|
| SPECTATE | Observing players.
|
| PHOTO | Photo mode.
|
| ADMIN | Server administration.
|
| BUILDING | Building mode.
|
| PHOTO_SAVE | |
◆ EEditorState
Unique editor state.
| Enumerator |
|---|
| NONE | No interaction allowed.
|
| SELECTING | Able to select entities.
|
| MULTI_SELECTING | Drawing multi-selection frame.
|
| PLACING | Placing a new entity.
|
| TRANSFORMING | Moving or rotating an entity.
|
◆ EEditorTransformSnap
Vertical snapping rules.
| Enumerator |
|---|
| NONE | Don't snap.
|
| TERRAIN | Snap to terrain.
|
| GEOMETRY | Snap to geometry.
|
◆ EEditorTransformVertical
Vertical transformation mode.
| Enumerator |
|---|
| SEA | Above sea level.
|
| TERRAIN | Above terrain level.
|
| GEOMETRY | Above geometry level.
|