i6engine  1.0
i6e::modules::ObjectManager Class Reference

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/modules/object/ObjectManager.h>

Public Member Functions

 ObjectManager ()
 constructor, initializes Object stuff More...
 
 ~ObjectManager ()
 destructor More...
 
void Tick ()
 tick of the ObjectManager, called by ObjectController to inform ObjectManager there is the next frame More...
 
void registerCTemplate (const std::string &GOCType, const api::createGOCCallback &fn)
 registers a template with callback for creating a Component More...
 
api::ComPtr createGOC (const int64_t id, const std::string &GOCType, const api::attributeMap &params, const GOPtr &owner) const
 Creates a new Component. More...
 
void loadLevel (const std::string &file, const std::string &flags, const std::function< void(uint16_t)> &callback)
 loads a level out of the given file with the given flags More...
 

Friends

class GOFactory
 
class ObjectMailbox
 

Detailed Description

Definition at line 44 of file ObjectManager.h.

Constructor & Destructor Documentation

i6e::modules::ObjectManager::ObjectManager ( )

constructor, initializes Object stuff

i6e::modules::ObjectManager::~ObjectManager ( )

destructor

Member Function Documentation

api::ComPtr i6e::modules::ObjectManager::createGOC ( const int64_t  id,
const std::string &  GOCType,
const api::attributeMap params,
const GOPtr owner 
) const

Creates a new Component.

Parameters
[in]GOCTypename of the Component to create.
[in]paramsa std::map<std::string, std::string> used to parameterize the creation process
Returns
a pointer to the created GOComponent
Exceptions
I6_FAILUREWhen GOCType is not registered at this factory.
void i6e::modules::ObjectManager::loadLevel ( const std::string &  file,
const std::string &  flags,
const std::function< void(uint16_t)> &  callback 
)

loads a level out of the given file with the given flags

Parameters
[in]filefile to open
[in]flags
[in]callbackfor progress
Exceptions
I6_FAILUREWhen file can't be opened
void i6e::modules::ObjectManager::registerCTemplate ( const std::string &  GOCType,
const api::createGOCCallback fn 
)

registers a template with callback for creating a Component

void i6e::modules::ObjectManager::Tick ( )

tick of the ObjectManager, called by ObjectController to inform ObjectManager there is the next frame

Friends And Related Function Documentation

friend class GOFactory
friend

Definition at line 45 of file ObjectManager.h.

friend class ObjectMailbox
friend

Definition at line 46 of file ObjectManager.h.


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