Skip to content

FSMExposedFunctionHandler

Module: SMSystem

#include <SMExposedFunctions.h>

Description

struct FSMExposedFunctionHandler;

Handles execution of functions exposed in blueprint graphs. This is meant to be defined once per class function and then executed for a given object context.

Public Functions

Name
FSMExposedFunctionHandler()
void Initialize(const UClass * InClass)
void Execute(UObject * InObject, void * InParams =nullptr) const
UFunction * GetFunction() const

Public Attributes

Name
FName BoundFunction
ESMExposedFunctionExecutionType ExecutionType

Public Functions Documentation

function FSMExposedFunctionHandler

inline FSMExposedFunctionHandler()

function Initialize

void Initialize(
    const UClass * InClass
)

Lookup the UFunction by the BoundFunction name.

Parameters:

InClass
The class owning the function.

function Execute

void Execute(
    UObject * InObject,
    void * InParams =nullptr
) const

Execute the function for a given object.

Parameters:

InObject
The object instance to execute the function on.
InParams
Optional params to provide to the function.

function GetFunction

inline UFunction * GetFunction() const

Public Attributes Documentation

variable BoundFunction

FName BoundFunction;

Name of the graph function we will be evaluating.


variable ExecutionType

ESMExposedFunctionExecutionType ExecutionType;

The type of execution for this function.


Private Attributes Documentation

variable Function

TObjectPtr< UFunction > Function;