Cogs.Core
SceneReader.h
1#pragma once
2
3#include "AssetReader.h"
4
5#include "Resources/AssetDefinition.h"
6
7namespace Cogs::Core
8{
16 void COGSCORE_DLL_API readScene(class Context * context, const Value & jsonScene, AssetLoadFlags flags, ComponentModel::Entity * root);
17
19 void COGSCORE_DLL_API readSceneDefinition(class Context * context, const Value & jsonScene, AssetLoadFlags flags, AssetDefinition & asset);
20
21 void COGSCORE_DLL_API readSceneEntityDefinition(Context* context, const Value& jsonEntity, AssetDefinition& asset, SceneDefinition& sceneDef, uint32_t entityId, struct ExpressionContext* ev);
22}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
void COGSCORE_DLL_API readSceneDefinition(class Context *context, const Value &jsonScene, AssetLoadFlags flags, AssetDefinition &asset)
Parse JSON description of Entities in Cogs Scene. Store contents in asset param.
void COGSCORE_DLL_API readScene(class Context *context, const Value &jsonScene, AssetLoadFlags flags, ComponentModel::Entity *root)
Parse JSON description of Entities in Cogs Scene file and create Entities defined in scene.
AssetLoadFlags
Asset and Scene loading flags. May be combined with resource loading flags.