|
| override void | Init (IEntity pOwnerEntity, GenericComponent pManagerComponent) |
| | Called when object is initialized and registered to actions manager.
|
| |
| override bool | CanBeShownScript (IEntity user) |
| | Can this entity be shown in the UI by the provided user entity?
|
| |
| override bool | GetActionNameScript (out string outName) |
| | If overridden and true is returned, outName is returned when BaseUserAction.GetActionName is called.
|
| |
| override float | SCR_GetCurrentValue () |
| | Scripted version of the GetCurrentValue that can be overriden for custom handling.
|
| |
| override float | GetActionProgressScript (float fProgress, float timeSlice) |
| | Returns the progress of this action in seconds.
|
| |
| override void | OnActionStart (IEntity pUserEntity) |
| | Method called from scripted interaction handler when an action is started (progress bar appeared)
|
| |
| bool | IsManuallyAdjusted () |
| | Used to tell if this action is meant to be adjustable with usage of the scroll wheel.
|
| |
| override void | PerformContinuousAction (IEntity pOwnerEntity, IEntity pUserEntity, float timeSlice) |
| | Called when someone tries to perform the continuous action, user entity is typically character.
|
| |
| override void | OnActionCanceled (IEntity pOwnerEntity, IEntity pUserEntity) |
| | Method called when the action is interrupted/canceled.
|
| |
| override bool | HasLocalEffectOnlyScript () |
| | Is the script broadcast to the server?
|
| |
| override bool | CanBroadcastScript () |
| | If HasLocalEffectOnly() is true this method tells if the server is supposed to broadcast this action to clients.
|
| |
| proto external float | GetMinimumValue () |
| |
| proto external float | GetMaximumValue () |
| |
| proto external float | GetCurrentValue () |
| |
| proto external void | SetSignalValue (float newValue) |
| |
| void | PerformAction (IEntity pOwnerEntity, IEntity pUserEntity) |
| | Called when someone tries to perform the action, user entity is typically character.
|
| |
| void | OnConfirmed (IEntity pUserEntity) |
| | If action passed as callback OnConfirmed will be called when reached execution, user entity is typically character.
|
| |
| void | OnRejected (IEntity pUserEntity) |
| | If action passed as callback OnRejected will be called when execution was rejected, user entity is typically character.
|
| |
| bool | GetActionDescriptionScript (out string outName) |
| | If overridden and true is returned, outName is returned when BaseUserAction.GetActionDescription is called.
|
| |
| bool | CanBePerformedScript (IEntity user) |
| | Can this action be performed by the provided user entity?
|
| |
| void | SetCannotPerformReason (string reason) |
| | Sets the reason why action couldn't be performed.
|
| |
| string | GetCannotPerformReason () |
| | Returns the reason why action couldn't be performed.
|
| |
| proto external int | GetContextIndex (string sContextName) |
| | Returns the index of the context this action is registered in as or -1 if none.
|
| |
| proto external void | SetActiveContext (UserActionContext context) |
| | Setter for m_pActiveContext.
|
| |
| proto external UserActionContext | GetActiveContext () |
| | Getter for m_pActiveContext.
|
| |
| proto external bool | CanBePerformed (IEntity user) |
| | Can this action be performed by the user?
|
| |
| proto external bool | CanBeShown (IEntity user) |
| | Can this action be shown in the UI for the user?
|
| |
| proto external bool | HasLocalEffectOnly () |
| | Does this action only have client side effect?
|
| |
| proto external bool | CanBroadcast () |
| | If HasLocalEffectOnly() is false this method tells if the server is supposed to broadcast this action to clients.
|
| |
| proto external bool | ShouldPerformPerFrame () |
| | Should this action be performed every frame the input action is triggered?
|
| |
| proto external string | GetActionName () |
| | Return the name of this action.
|
| |
| proto external string | GetActionDescription () |
| | Return the description of this action.
|
| |
| proto external float | GetVisibilityRange () |
| | Returns the visibility range of this action in metres.
|
| |
| proto external void | SetActionDuration (float duration) |
| | Sets the duration of this action in seconds.
|
| |
| proto external float | GetActionDuration () |
| | Returns the duration of this action in seconds.
|
| |
| proto external float | GetActionProgress (float fProgress, float timeSlice) |
| | Returns the progress of this action in seconds.
|
| |
| proto external bool | IsInProgress () |
| | Returns true while continuous or timed action is being used.
|
| |
| proto external UIInfo | GetUIInfo () |
| | Returns the UIInfo set for this user action or null if none.
|
| |
| proto external IEntity | GetOwner () |
| | Returns the parent entity of this action.
|
| |
| proto external bool | CanAggregate () |
| | Whether action can be aggregated by name, this is a temp workaround for localization.
|
| |
| proto external int | GetActionID () |
| | Returns the ID with which this action is registered in its parent ActionsManagerComponent.
|
| |
| proto external void | SetSendActionDataFlag () |
| | Used to ask to send action data again during continuous action.
|
| |
| proto external ActionsManagerComponent | GetActionsManager () |
| |
| proto external void | SetActionEnabled_S (bool enable) |
| | Action can be enabled/disabled by the server. Disabled actions return false for CanBeShown(). Has no effect when called from the client.
|
| |
| proto external bool | WasDisabledByServer () |
| | Was the action disabled by the server?
|
| |
|
| override float | SCR_GetMinimumValue () |
| | Scripted version of the GetMinimumValue that can be overriden for custom handling.
|
| |
| override float | SCR_GetMaximumValue () |
| | Scripted version of the GetMaximumValue that can be overriden for custom handling.
|
| |
| override bool | OnSaveActionData (ScriptBitWriter writer) |
| | Before performing the action the caller can store some data in it which is delivered to others.
|
| |
| override bool | OnLoadActionData (ScriptBitReader reader) |
| | If the one performing the action packed some data in it everybody receiving the action.
|
| |
| void | ToggleActionBypass () |
| | Temporary fix for an issue of SetSendActionDataFlag not working properly from PerformAction.
|
| |
| void | HandleAction (float value) |
| | Increment target value.
|
| |
| void | HandleActionDecrease (float value) |
| | Decrement target value.
|
| |
| void | PlayMovementAndStopSound (float lerp) |
| | Plays movement and stop movement sound events.
|
| |
| bool | OnRplSave (ScriptBitWriter writer) |
| |
| bool | OnRplLoad (ScriptBitReader reader) |
| |
| void | OnActionSelected () |
| | Callback for when action is selected by the local player and the local player ONLY.
|
| |
| void | OnActionDeselected () |
| | Callback for when action is deselected by the local player and the local player ONLY.
|
| |