Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CObjectSerializable Class Reference
Inheritance diagram for Skylicht::CObjectSerializable:
Skylicht::CValueProperty Skylicht::CInterpolateSerializable< CFloatProperty > Skylicht::CArraySerializable Skylicht::CAssetResource Skylicht::CEntityTransformSerializable Skylicht::CInterpolateSerializable< T > Skylicht::CPrimitiveSerializable Skylicht::CProbeSerializable Skylicht::CTrailSerializable

Public Member Functions

void addProperty (CValueProperty *p)
void autoRelease (CValueProperty *p)
 CObjectSerializable (const char *name)
 CObjectSerializable (const char *name, CObjectSerializable *parent)
void remove (CValueProperty *value)
u32 getNumProperty ()
CValueProperty * getPropertyID (int i)
CValueProperty * getProperty (const char *name)
template<class T>
T * getProperty (const char *name)
template<class T>
get (const char *name, T defaultValue)
template<class T>
get (CValueProperty *p, T defaultValue)
virtual void serialize (io::IAttributes *io)
virtual void deserialize (io::IAttributes *io)
virtual bool save (const char *file)
virtual bool saveToFile ()
virtual bool load (const char *file)
virtual void save (io::IXMLWriter *writer)
virtual void load (io::IXMLReader *reader)
virtual void parseSerializable (io::IXMLReader *reader)
virtual CObjectSerializable * clone ()
virtual void copyTo (CObjectSerializable *object)
void setSavePath (const char *path)
Public Member Functions inherited from Skylicht::CValueProperty
 CValueProperty (CObjectSerializable *owner, EPropertyDataType dataType, const char *name)
void setOwner (CObjectSerializable *owner)
EPropertyDataType getType ()
EPropertyObjectType getObjectType ()
void setUIHeader (const char *header)
const std::string & getUIHeader ()
void setUISpace (float space)
float getUISpace ()
void setHidden (bool b)
bool isHidden ()

Protected Attributes

std::vector< CValueProperty * > m_value
std::vector< CValueProperty * > m_autoRelease
std::string m_savePath
Protected Attributes inherited from Skylicht::CValueProperty
EPropertyDataType m_dataType
EPropertyObjectType m_objectType
CObjectSerializablem_owner
std::string m_uiHeader
float m_uiSpace
bool m_hidden

Friends

class CValueProperty

Additional Inherited Members

Public Attributes inherited from Skylicht::CValueProperty
std::function< void(bool)> OnSetHidden
std::function< void()> OnChanged
std::string Name
std::vector< std::string > OtherName

Member Function Documentation

◆ clone()

virtual CObjectSerializable * Skylicht::CObjectSerializable::clone ( )
virtual

◆ deserialize()

virtual void Skylicht::CObjectSerializable::deserialize ( io::IAttributes * io)
virtual

◆ serialize()

virtual void Skylicht::CObjectSerializable::serialize ( io::IAttributes * io)
virtual

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