Cogs.Core
EntityReader.h
1#pragma once
2
3#include "Base.h"
4#include "JsonParser.h"
5
6#include "Foundation/Reflection/Type.h"
7
8#include <vector>
9
10namespace Cogs
11{
12 namespace Core
13 {
14 class Context;
15 class EntityStore;
16 struct FieldValue;
17 struct ExpressionContext;
18
19 bool COGSCORE_DLL_API readFieldValue(Context * context, const Value & jsonValue, const Reflection::Type & type, const StringView & fieldName, std::vector<FieldValue> & fieldValues, ExpressionContext * ec);
20 bool COGSCORE_DLL_API readFieldValues(Context * context, const Value & jsonValue, const StringView & componentName, std::vector<FieldValue> & fieldValues, ExpressionContext * ec);
21 void COGSCORE_DLL_API readEntityDefaults(Context * context, const Value & value, std::vector<FieldValue> & defaultValues, ExpressionContext * ec);
22 void COGSCORE_DLL_API readEntityDefinition(EntityStore * store, const StringView & name, const Value & value);
23 bool COGSCORE_DLL_API readEntityDefinition(EntityStore * store, const StringView & name, const Value & value, struct EntityDefinition & definition);
24
28 void COGSCORE_DLL_API readEntityDefinition(const StringView & content, EntityStore * store);
29 }
30}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23