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::TypeConverterTuple Class Referencefinal

Inherits EditorPythonBindings::PythonMarshalComponent::TypeConverter.

Public Member Functions

 TypeConverterTuple (AZ::GenericClassInfo *genericClassInfo, const AZ::SerializeContext::ClassData *classData, const AZ::TypeId &typeId)
 
AZStd::optional< PythonMarshalTypeRequests::BehaviorValueResultPythonToBehaviorValueParameter (PythonMarshalTypeRequests::BehaviorTraits traits, pybind11::object pyObj, AZ::BehaviorArgument &outValue) override
 
AZStd::optional< PythonMarshalTypeRequests::PythonValueResultBehaviorValueParameterToPython (AZ::BehaviorArgument &behaviorValue) override
 
bool CanConvertPythonToBehaviorValue (PythonMarshalTypeRequests::BehaviorTraits traits, pybind11::object pyObj) const override
 
- Public Member Functions inherited from EditorPythonBindings::PythonMarshalComponent::TypeConverter
virtual AZStd::optional< PythonMarshalComponent::BehaviorValueResult > PythonToBehaviorValueParameter (PythonMarshalTypeRequests::BehaviorTraits traits, pybind11::object pyObj, AZ::BehaviorArgument &outValue)=0
 
virtual AZStd::optional< PythonMarshalComponent::PythonValueResult > BehaviorValueParameterToPython (AZ::BehaviorArgument &behaviorValue)=0
 
virtual bool CanConvertPythonToBehaviorValue (BehaviorTraits traits, pybind11::object pyObj) const =0
 

Protected Member Functions

bool IsValidList (pybind11::object pyObj) const
 
bool IsValidTuple (pybind11::object pyObj) const
 
bool IsCompatibleProxy (pybind11::object pyObj) const
 

Static Protected Member Functions

static bool LoadPythonToTupleElement (PyObject *pyItem, PythonMarshalTypeRequests::BehaviorTraits traits, const AZ::SerializeContext::ClassElement *itemElement, AZ::SerializeContext::IDataContainer *tupleContainer, size_t index, AZ::SerializeContext *serializeContext, void *newTuple)
 

Protected Attributes

const AZ::SerializeContext::ClassData * m_classData = nullptr
 
const AZ::TypeId m_typeId = {}
 

Member Function Documentation

◆ BehaviorValueParameterToPython()

AZStd::optional< PythonMarshalTypeRequests::PythonValueResult > EditorPythonBindings::TypeConverterTuple::BehaviorValueParameterToPython ( AZ::BehaviorArgument &  behaviorValue)
overridevirtual

◆ PythonToBehaviorValueParameter()

AZStd::optional< PythonMarshalTypeRequests::BehaviorValueResult > EditorPythonBindings::TypeConverterTuple::PythonToBehaviorValueParameter ( PythonMarshalTypeRequests::BehaviorTraits  traits,
pybind11::object  pyObj,
AZ::BehaviorArgument &  outValue 
)
overridevirtual

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