Manager of command actions, i.e., waypoint for AI groups or objectives for factions.
More...
|
ScriptInvoker | GetOnCurrentActionChanged () |
| Get handler called when current action changes.
|
|
bool | IsActionCurrent (SCR_BaseEditorAction action) |
| Check if given action is currently selected one.
|
|
void | SetCurrentAction (SCR_BaseEditorAction currentAction) |
| Set action as current.
|
|
void | PerformDefaultAction (bool isQueue) |
| Instantly place a command.
|
|
void | StartPlacing (SCR_BaseEditorAction action) |
| Start placing of a command.
|
|
override int | ValidateSelection (bool isInstant) |
| Evaluate which entities are under cursor and which are selected.
|
|
override bool | ActionCanBeShown (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags) |
|
override bool | ActionCanBePerformed (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags) |
|
override void | EOnEditorActivate () |
| When the component is activated.
|
|
override void | EOnEditorDeactivate () |
| When the component is deactivated.
|
|
SCR_EditableEntityComponent | GetHoveredEntity () |
|
int | GetActions (out notnull array< SCR_BaseEditorAction > actions) |
| Gets all actions on the component.
|
|
void | EvaluateActions (notnull array< SCR_BaseEditorAction > actions, vector cursorWorldPosition, out notnull array< ref SCR_EditorActionData > filteredActions, out int flags=0) |
| Evaluates passed list of actions for the current context.
|
|
int | GetAndEvaluateActions (vector cursorWorldPosition, out notnull array< ref SCR_EditorActionData > filteredActions, out int flags=0) |
| Gets and evaluates actions for current context, combination of GetActions and EvaluateActions functions.
|
|
bool | ActionCanBeShown (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags) |
|
bool | ActionCanBePerformed (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags) |
|
void | ActionPerformInstantly (SCR_BaseEditorAction action, int flags=0) |
| When action shortcut is activated, check if the action can be performed and if so, perform it.
|
|
void | ActionPerform (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags) |
| Perform given action.
|
|
override void | EOnEditorActivate () |
| When the component is activated.
|
|
override void | EOnEditorDeactivate () |
| When the component is deactivated.
|
|
sealed void | OnInitBase () |
|
sealed void | OnDeleteBase () |
|
sealed void | OnRequestBase (bool isOpen) |
|
sealed void | OnOpenedBase () |
|
sealed void | OnClosedBase () |
|
sealed void | OnPreActivateBase () |
|
sealed void | OnActivateBase () |
|
sealed bool | OnActivateAsyncBase (int attempt) |
|
sealed void | OnPostActivateBase () |
|
sealed void | OnDeactivateBase () |
|
sealed void | OnPostDeactivateBase () |
|
sealed bool | OnDeactivateAsyncBase (int attempt) |
|
sealed 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 () |
|
|
void | OnPlacingSelectedPrefabChange (ResourceName prefab, ResourceName prefabPrev) |
|
override TraceFlags | GetInstantActionTraceFlags () |
|
int | ValidateSelection (bool isInstant) |
| Evaluate which entities are under cursor and which are selected.
|
|
void | ActionPerformInstantlyNoDialog (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags=0) |
|
TraceFlags | GetInstantActionTraceFlags () |
|
void | ActionPerformRpc (SCR_BaseEditorAction action, vector cursorWorldPosition, int flags, int param=-1) |
|
void | ActionPerform (SCR_BaseEditorAction action, SCR_EditableEntityComponent hoveredEntityComponent, set< SCR_EditableEntityComponent > selectedEntityComponents, vector cursorWorldPosition, int flags, int param) |
|
void | ActionPerformLocal (SCR_BaseEditorAction action, SCR_EditableEntityComponent hoveredEntityComponent, set< SCR_EditableEntityComponent > selectedEntityComponents, vector cursorWorldPosition, int flags, int param) |
|
void | ActionPerformServer (int actionIndex, RplId hoveredEntityID, array< RplId > selectedEntityIds, vector cursorWorldPosition, int flags, int param) |
| Perform given action on server, exclusively called by ActionPerform.
|
|
void | ActionPerformOwner (int actionIndex, vector cursorWorldPosition, int flags, int param) |
| Server callback for when action is executed succesfully, calls PerformOwner function on action for e.g. local effects.
|
|
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 | 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.
|
|
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 | 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.
|
|
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)
|
|
Manager of command actions, i.e., waypoint for AI groups or objectives for factions.