class MAGES::BaseActionData¶
Overview¶
Base class for action data. More…
class BaseActionData: public ScriptableObject { public: // enums enum ObjectParentType; // properties ListNextActions; List PrevActions; List AttachedScripts; Action PathEnd; string ID; string ActionName; bool AdvancedMode; Vector2 NodePosition; ActionState State; StepContainer Steps; EffectDataCollection Effects; GameObject[] InteractableObjects; GameObject[] ActionableObjects; bool IsStartAction; // methods override bool Equals(object other); override int GetHashCode(); virtual List GetLinkedActions(); virtual List GetIncomingActions(); }; // direct descendants class ActivateActionData; class EndActionData; class InsertActionData; class QuestionActionData; class RemoveActionData; class RepeatActionData; class StartActionData; class TrajectoryActionData; class UseActionData;
Detailed Documentation¶
Base class for action data.
Properties¶
ListNextActions
Gets or sets the next actions.
ListPrevActions
Gets or sets the previous actions.
ListAttachedScripts
Gets or sets the attached scripts.
Action PathEnd
Gets or sets the event that is called when an action without next action is performed.
string ID
Gets or sets the id.
This is a unique identifier for the action, both in the graph and in the scene.
string ActionName
Gets or sets the action name.
bool AdvancedMode
Gets or sets a value indicating whether the advanced mode where more options are available on the action node.
Vector2 NodePosition
Gets or sets the node position.
ActionState State
Gets or sets the current state of this action.
StepContainer Steps
Gets or sets the steps container.
EffectDataCollection Effects
Gets or sets the effects data.
GameObject[] InteractableObjects
Gets the interactable objects.
GameObject[] ActionableObjects
Gets the objects that can be acted upon.
bool IsStartAction
Gets a value indicating whether this action is a start action.
Methods¶
virtual ListGetLinkedActions()
Gets the linked actions.
Returns:
The linked action list.
virtual ListGetIncomingActions()
Gets the incoming actions.
Returns:
The incoming linked action list.