Cogs.Core
Batch.h
1#pragma once
2
3#include "EditorExtension.h"
4
5#include "Base.h"
6#include "Utilities/Parsing.h"
7
8#include "Services/PropertiesManager.h"
9
10#include "Foundation/StringView.h"
11
12#include <vector>
13
14namespace Cogs::Core
15{
17 {
18 std::string type;
19 std::vector<ParsedValue> values;
20
21 PropertyStore properties;
22
24 bool containsKey(const std::string& key) const
25 {
26 for (auto & value : values) {
27 if (value.key == key) return true;
28 }
29
30 return false;
31 }
32 };
33
34 void COGSCORE_EDITOR_API runBatch(class Context * context, class Editor * editor, const StringView & path);
35 void COGSCORE_EDITOR_API runFrames(Context* context, size_t numFrames, bool clear = true, bool wait = true);
36}
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
bool containsKey(const std::string &key) const
Check if key is present in values.
Definition: Batch.h:24