class MAGES::SceneGraph::RemoveActionData::Factory

Overview

class Factory: public MAGES::SceneGraph::ActionFactory
{
public:
    // methods

    virtual override bool Initialize(
        BaseActionData data,
        Action trigger,
        GraphRunner runner
    );

    virtual override void WriteDefaults(BaseActionData data);
};

Inherited Members

public:
    // methods

    static bool InvokeInitialize(
        BaseActionData data,
        Action trigger,
        GraphRunner runner
    );

    static bool InvokeUndo(BaseActionData data);
    static void InvokeWriteDefaults(BaseActionData data);
    static BaseActionData CreateAction(System.Type actionType);
    virtual void WriteDefaults(BaseActionData data);

    virtual abstract bool Initialize(
        BaseActionData data,
        Action trigger,
        GraphRunner runner
    ) = 0;

    virtual bool Undo(BaseActionData data);

Detailed Documentation

Methods

virtual override bool Initialize(
    BaseActionData data,
    Action trigger,
    GraphRunner runner
)

Initialize the action based on data.

Parameters:

data

The data.

trigger

Invoke this action to move to the next one.

runner

The graph runner.

Returns:

Whether (or not) the action was properly initialized.

virtual override void WriteDefaults(BaseActionData data)

Write the default values for the action data.

Parameters:

data

The action data.