ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyPredefinedTypeInfo< Type, PropType > Struct Template Reference

#include <PredefinedTypes.h>

Inheritance diagram for ArticyPredefinedTypeInfo< Type, PropType >:
FArticyPredefinedTypeBase

Public Types

typedef PropType(* TDeserializer) (PROP_SETTER_PARAMS)

Public Member Functions

 ArticyPredefinedTypeInfo (const FString &TypeName, const FString &PropTypeName, const FString &DefaultValue, PropType(*Deserializer)(PROP_SETTER_PARAMS))
virtual void SetProp (const FName Property, PROP_SETTER_PARAMS) override
virtual void SetArray (FName ArrayProperty, ARRAY_SETTER_PARAMS) override
Public Member Functions inherited from FArticyPredefinedTypeBase
 FArticyPredefinedTypeBase (const FString &TypeName, const FString &PropTypeName, const FString &DefaultValue)

Public Attributes

TDeserializer Deserializer = nullptr
Public Attributes inherited from FArticyPredefinedTypeBase
FString CppType = ""
FString CppPropertyType = ""
FString CppDefaultValue = ""

Detailed Description

template<typename Type, typename PropType = Type>
struct ArticyPredefinedTypeInfo< Type, PropType >

This struct contains information about the type (as C++ type and as string) used to declare a class/struct/enum as well as the type to expose an instance of that type. It also defines how to initialize a property on a UArticyObject from JSON, using UArticyObject->setProp.

Member Function Documentation

◆ SetArray()

template<typename Type, typename PropType = Type>
virtual void ArticyPredefinedTypeInfo< Type, PropType >::SetArray ( FName ArrayProperty,
ARRAY_SETTER_PARAMS  )
inlineoverridevirtual

This is used to set an array property with ItemType = PropType.

Reimplemented from FArticyPredefinedTypeBase.

◆ SetProp()

template<typename Type, typename PropType = Type>
virtual void ArticyPredefinedTypeInfo< Type, PropType >::SetProp ( const FName Property,
PROP_SETTER_PARAMS  )
inlineoverridevirtual

This is used to set a property of type PropType.

Reimplemented from FArticyPredefinedTypeBase.

Member Data Documentation

◆ Deserializer

template<typename Type, typename PropType = Type>
TDeserializer ArticyPredefinedTypeInfo< Type, PropType >::Deserializer = nullptr

The deserializer used to deserialize JSON to PropType.


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