Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::BehaviorEBusHandler Class Referenceabstract

Classes

struct  BusForwarderEvent
 

Public Types

using GenericHookType = void(*)(void *, const char *, int, BehaviorArgument *, int, BehaviorArgument *)
 
using EventArray = AZStd::vector< BusForwarderEvent >
 

Public Member Functions

 AZ_TYPE_INFO_WITH_NAME_DECL (BehaviorEBusHandler)
 
 AZ_RTTI_NO_TYPE_INFO_DECL ()
 
virtual int GetFunctionIndex (const char *name) const =0
 
template<class BusId >
bool Connect (BusId id)
 
virtual bool Connect (BehaviorArgument *id=nullptr)=0
 
virtual void Disconnect (BehaviorArgument *id=nullptr)=0
 
template<class BusId >
void Disconnect (BusId id)
 
virtual bool IsConnected ()=0
 
virtual bool IsConnectedId (BehaviorArgument *id)=0
 
template<class Hook >
bool InstallHook (int index, Hook h, void *userData=nullptr)
 
template<class Hook >
bool InstallHook (const char *name, Hook h, void *userData=nullptr)
 
bool InstallGenericHook (int index, GenericHookType hook, void *userData=nullptr)
 
bool InstallGenericHook (const char *name, GenericHookType hook, void *userData=nullptr)
 
const EventArrayGetEvents () const
 
AZStd::string GetScriptPath () const
 
void SetScriptPath (const char *scriptPath)
 

Public Attributes

AZStd::string m_scriptPath
 

Protected Member Functions

template<class Event >
void SetEvent (Event e, const char *name)
 
template<class Event >
void SetEvent (Event e, AZStd::string_view name, const BehaviorParameterOverridesArray< Event > &args)
 
template<class... Args>
void Call (int index, Args &&... args) const
 
template<class R , class... Args>
void CallResult (R &result, int index, Args &&... args) const
 

Protected Attributes

EventArray m_events
 

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