Rebel Fork Framework
Urho3D::PrefabWriterToMemory Class Reference

Utility class to write prefab data to NodePrefab. More...

#include <Urho3D/Scene/PrefabWriter.h>

Inheritance diagram for Urho3D::PrefabWriterToMemory:
Urho3D::PrefabWriter Urho3D::NonCopyable

Public Member Functions

 PrefabWriterToMemory (NodePrefab &nodePrefab, PrefabSaveFlags flags={})
void WriteNode (unsigned id, const Serializable *node) override
void WriteNumComponents (unsigned numComponents) override
void WriteComponent (unsigned id, const Serializable *component) override
void WriteNumChildren (unsigned numChildren) override
void BeginChild () override
void EndChild () override
bool IsEOF () const override
PrefabSaveFlags GetFlags () const override

Private Member Functions

NodePrefab & CurrentNode () const
void StartChildren ()
void NextNode ()
void CheckEOF ()

Private Attributes

NodePrefab & nodePrefab_
const PrefabSaveFlags flags_
ea::vector< ea::pair< NodePrefab *, unsigned > > stack_
unsigned componentIndex_ {}

Additional Inherited Members

Protected Member Functions inherited from Urho3D::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
 NonCopyable (NonCopyable &&other)=delete
NonCopyable & operator= (const NonCopyable &other)=delete
NonCopyable & operator= (NonCopyable &&other)=delete

Detailed Description

Utility class to write prefab data to NodePrefab.

Member Function Documentation

◆ BeginChild()

void Urho3D::PrefabWriterToMemory::BeginChild ( )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ EndChild()

void Urho3D::PrefabWriterToMemory::EndChild ( )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ GetFlags()

PrefabSaveFlags Urho3D::PrefabWriterToMemory::GetFlags ( ) const
inlineoverridevirtual

Implements Urho3D::PrefabWriter.

◆ IsEOF()

bool Urho3D::PrefabWriterToMemory::IsEOF ( ) const
inlineoverridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteComponent()

void Urho3D::PrefabWriterToMemory::WriteComponent ( unsigned id,
const Serializable * component )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNode()

void Urho3D::PrefabWriterToMemory::WriteNode ( unsigned id,
const Serializable * node )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNumChildren()

void Urho3D::PrefabWriterToMemory::WriteNumChildren ( unsigned numChildren)
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNumComponents()

void Urho3D::PrefabWriterToMemory::WriteNumComponents ( unsigned numComponents)
overridevirtual

Implements Urho3D::PrefabWriter.


The documentation for this class was generated from the following files:
  • Urho3D/Scene/PrefabWriter.h
  • Urho3D/Scene/PrefabWriter.cpp