Open 3D Engine EditorPythonBindings Gem 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.
EditorPythonBindings::PythonMarshalComponent Class Reference

Handles marshaling of built-in Behavior types like numbers, strings, and lists. More...

#include <PythonMarshalComponent.h>

Inherits AZ::Component, and PythonMarshalTypeRequestBus::MultiHandler.

Classes

class  TypeConverter
 

Public Types

using TypeConverterPointer = AZStd::shared_ptr< TypeConverter >
 

Public Member Functions

 AZ_COMPONENT (PythonMarshalComponent, PythonMarshalComponentTypeId, AZ::Component)
 
void RegisterTypeConverter (const AZ::TypeId &typeId, TypeConverterPointer typeConverterPointer)
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required)
 

Protected Member Functions

void Activate () override
 
void Deactivate () override
 
AZStd::optional< PythonMarshalTypeRequests::BehaviorValueResultPythonToBehaviorValueParameter (PythonMarshalTypeRequests::BehaviorTraits traits, pybind11::object pyObj, AZ::BehaviorArgument &outValue) override
 
AZStd::optional< PythonMarshalTypeRequests::PythonValueResultBehaviorValueParameterToPython (AZ::BehaviorArgument &behaviorValue) override
 
bool CanConvertPythonToBehaviorValue (BehaviorTraits traits, pybind11::object pyObj) const override
 

Detailed Description

Handles marshaling of built-in Behavior types like numbers, strings, and lists.


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