ezEngine  Release 25.03
ezStateMachineState_NestedStateMachine Class Reference

A state machine state implementation that represents another state machine nested within this state. This can be used to build hierarchical state machines. More...

#include <StateMachineBuiltins.h>

Inheritance diagram for ezStateMachineState_NestedStateMachine:

Public Member Functions

 ezStateMachineState_NestedStateMachine (ezStringView sName=ezStringView())
 
virtual void OnEnter (ezStateMachineInstance &ref_instance, void *pInstanceData, const ezStateMachineState *pFromState) const override
 
virtual void OnExit (ezStateMachineInstance &ref_instance, void *pInstanceData, const ezStateMachineState *pToState) const override
 
virtual void Update (ezStateMachineInstance &ref_instance, void *pInstanceData, ezTime deltaTime) const override
 
virtual ezResult Serialize (ezStreamWriter &inout_stream) const override
 
virtual ezResult Deserialize (ezStreamReader &inout_stream) override
 
virtual bool GetInstanceDataDesc (ezInstanceDataDesc &out_desc) override
 Returns whether this state needs additional instance data and if so fills the out_desc. More...
 
void SetResource (const ezStateMachineResourceHandle &hResource)
 
const ezStateMachineResourceHandleGetResource () const
 
void SetInitialState (const char *szName)
 Defines which state should be used as initial state after the state machine was instantiated. If empty the state machine resource defines the initial state.
 
const char * GetInitialState () const
 
- Public Member Functions inherited from ezStateMachineState
 ezStateMachineState (ezStringView sName=ezStringView())
 
void SetName (ezStringView sName)
 
ezStringView GetName () const
 
const ezHashedStringGetNameHashed () const
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Additional Inherited Members

- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

A state machine state implementation that represents another state machine nested within this state. This can be used to build hierarchical state machines.

Member Function Documentation

◆ GetInstanceDataDesc()

bool ezStateMachineState_NestedStateMachine::GetInstanceDataDesc ( ezInstanceDataDesc out_desc)
overridevirtual

Returns whether this state needs additional instance data and if so fills the out_desc.

See also
ezStateMachineInstanceDataDesc

Reimplemented from ezStateMachineState.


The documentation for this class was generated from the following files: