Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CTrailSerializable Class Reference

Serialization helper for particle trails. More...

#include <ParticleSystem/CTrailSerializable.h>

Inheritance diagram for Skylicht::CTrailSerializable:
Skylicht::CObjectSerializable Skylicht::CValueProperty

Public Member Functions

 CTrailSerializable (CObjectSerializable *parent)
virtual CObjectSerializable * clone ()
Public Member Functions inherited from Skylicht::CObjectSerializable
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 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 ()

Public Attributes

CStringProperty Name
 The name of the linked particle group.
CFloatProperty Width
 Width of the trail ribbon.
CFloatProperty Length
 Maximum length of the trail.
CFloatProperty SegmentLength
 Length of each segment in the ribbon.
CBoolProperty DestroyWhenParticleDead
 Whether to immediately destroy the trail when its particle dies.
CFloatProperty DeadAlphaReduction
 Alpha reduction rate for trails left behind by dead particles.
CImageSourceProperty Texture
 Path to the trail texture.
CBoolProperty UseCustomMaterial
 Whether to use a custom material file instead of the default.
CFilePathProperty CustomMaterial
 Path to the custom material file.
CBoolProperty Emission
 Whether the trail has emission (glow).
CFloatProperty EmissionIntensity
 Intensity of the emission.
Public Attributes inherited from Skylicht::CValueProperty
std::function< void(bool)> OnSetHidden
std::function< void()> OnChanged
std::string Name
std::vector< std::string > OtherName

Additional Inherited Members

Protected Attributes inherited from Skylicht::CObjectSerializable
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

Detailed Description

Serialization helper for particle trails.

Member Function Documentation

◆ clone()

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

Reimplemented from Skylicht::CObjectSerializable.


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