Brunot
Loading...
Searching...
No Matches
Factory.cpp File Reference
#include "Factory.h"
#include "Utility/Any_Serializable.h"
#include <unordered_map>
#include <string>
#include "Audio/AudioObject.h"
#include "Component/FilteredSelector.h"
#include "Framework/Entity.h"
#include "Framework/Node.h"
#include "Graphics/Mesh.h"
#include "System/Json.h"
#include "Graphics/Texture.h"
#include "Utility/Messages/Button Messages/ButtonMessage.h"
#include "Utility/ALL_COMPONENTS_INCLUDE.h"
#include "Utility/FOR_ALL_COMPONENTS.h"
Include dependency graph for Factory.cpp:

Namespaces

namespace  th

Macros

#define WRITE_CONSTRUCTOR_MAP_ENTRY(name, id, ...)

Typedefs

using th::ConstructFunction = std::function<std::unique_ptr<AnySerializable>(sys::Json&)>

Variables

static const std::unordered_map< std::string, ConstructFunctionth::component_constructors
static const std::unordered_map< gobj::Type, ConstructFunctionth::gameObject_contructors
static const std::unordered_map< std::string, ConstructFunctionth::resource_constructors

Macro Definition Documentation

◆ WRITE_CONSTRUCTOR_MAP_ENTRY

#define WRITE_CONSTRUCTOR_MAP_ENTRY ( name,
id,
... )
Value:
{#name , [](sys::Json&file){return construct< name >(file);}},
Definition Json.h:32