Skip to content

FSMStateConnectionValidator

Module: SMSystem

#include <SMNodeRules.h>

Inherits from FSMConnectionValidator

Description

struct FSMStateConnectionValidator;

Describe under what conditions nodes are allowed to be connected.

Public Functions

Name
bool IsInboundConnectionValid(const TSoftClassPtr< USMNodeInstance > & FromClass, const TSoftClassPtr< USMNodeInstance > & StateMachineClass) const
bool IsOutboundConnectionValid(const TSoftClassPtr< USMNodeInstance > & ToClass, const TSoftClassPtr< USMNodeInstance > & StateMachineClass) const

Public Attributes

Name
TArray< FSMStateClassRule > AllowedInboundStates
TArray< FSMStateClassRule > AllowedOutboundStates
TArray< FSMStateMachineClassRule > AllowedInStateMachines

Public Functions Documentation

function IsInboundConnectionValid

bool IsInboundConnectionValid(
    const TSoftClassPtr< USMNodeInstance > & FromClass,
    const TSoftClassPtr< USMNodeInstance > & StateMachineClass
) const

Checks if this class has rules and if any of them apply.


function IsOutboundConnectionValid

bool IsOutboundConnectionValid(
    const TSoftClassPtr< USMNodeInstance > & ToClass,
    const TSoftClassPtr< USMNodeInstance > & StateMachineClass
) const

Checks if this class has rules and if any of them apply.


Public Attributes Documentation

variable AllowedInboundStates

TArray< FSMStateClassRule > AllowedInboundStates;

States that can connect to this state.


variable AllowedOutboundStates

TArray< FSMStateClassRule > AllowedOutboundStates;

States that this state can connect to.


variable AllowedInStateMachines

TArray< FSMStateMachineClassRule > AllowedInStateMachines;

State machines that this state can be placed in.