Nameless Engine
Loading...
Searching...
No Matches
ne::Serialize Class Reference

#include <SerializeProperty.h>

Inheritance diagram for ne::Serialize:

Public Member Functions

 Serialize (FieldSerializationType serializationType)
 
FieldSerializationType getSerializationType () const
 

Private Attributes

FieldSerializationType serializationType
 

Detailed Description

Add this property to your reflected field to make it serializable (i.e. it will be serialized and deserialized) when you serialize/deserialize the object.

Example:

RPROPERTY(ne::Serialize)
int iKey = 42; // will be serialized and deserialized
Definition: SerializeProperty.h:42

Constructor & Destructor Documentation

◆ Serialize()

ne::Serialize::Serialize ( FieldSerializationType  serializationType)

Initializes the property.

Parameters
serializationTypeDefined how this field should be serialized.

Member Function Documentation

◆ getSerializationType()

FieldSerializationType ne::Serialize::getSerializationType ( ) const

Returns how this field should be serialized.

Returns
Serialization type.

Member Data Documentation

◆ serializationType

FieldSerializationType ne::Serialize::serializationType
private

Defines how to serialize this property.


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