OpenBlox
A game engine which provides a simple and easy to learn Lua API.
OB::OBSerializer Class Reference

#include <OBSerializer.h>

Public Member Functions

 OBSerializer (OBEngine *eng)
 
shared_ptr< Instance::InstanceLoadModelFromMemory (char *buf, size_t size)
 
shared_ptr< Instance::InstanceLoadModel (std::string resURI)
 
bool LoadFromMemory (char *buf, size_t size)
 
bool Load (std::string resURI)
 
bool SaveModel (shared_ptr< Instance::Instance > model, std::string file)
 
std::string SaveModelInMemory (shared_ptr< Instance::Instance > model)
 
bool Save (std::string file)
 
std::string SaveInMemory ()
 
std::string GetID (shared_ptr< Instance::Instance > inst)
 
bool HasID (shared_ptr< Instance::Instance > inst)
 
shared_ptr< Instance::InstanceGetByID (std::string id)
 
void SetID (shared_ptr< Instance::Instance > inst, std::string newId)
 

Constructor & Destructor Documentation

◆ OBSerializer()

OB::OBSerializer::OBSerializer ( OBEngine eng)

Member Function Documentation

◆ GetByID()

shared_ptr<Instance::Instance> OB::OBSerializer::GetByID ( std::string  id)

◆ GetID()

std::string OB::OBSerializer::GetID ( shared_ptr< Instance::Instance inst)

◆ HasID()

bool OB::OBSerializer::HasID ( shared_ptr< Instance::Instance inst)

◆ Load()

bool OB::OBSerializer::Load ( std::string  resURI)

◆ LoadFromMemory()

bool OB::OBSerializer::LoadFromMemory ( char *  buf,
size_t  size 
)

◆ LoadModel()

shared_ptr<Instance::Instance> OB::OBSerializer::LoadModel ( std::string  resURI)

◆ LoadModelFromMemory()

shared_ptr<Instance::Instance> OB::OBSerializer::LoadModelFromMemory ( char *  buf,
size_t  size 
)

◆ Save()

bool OB::OBSerializer::Save ( std::string  file)

◆ SaveInMemory()

std::string OB::OBSerializer::SaveInMemory ( )

◆ SaveModel()

bool OB::OBSerializer::SaveModel ( shared_ptr< Instance::Instance model,
std::string  file 
)

◆ SaveModelInMemory()

std::string OB::OBSerializer::SaveModelInMemory ( shared_ptr< Instance::Instance model)

◆ SetID()

void OB::OBSerializer::SetID ( shared_ptr< Instance::Instance inst,
std::string  newId 
)

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