Cogs.Core
Source
Scripting
ScriptingManager.h
1
#pragma once
2
3
#include "Context.h"
4
5
#include <vector>
6
7
#include "Components/Core/ScriptComponent.h"
8
9
#include "ScriptingEngine.h"
10
11
namespace
Cogs
12
{
13
namespace
Core
14
{
15
class
ScriptingManager
16
{
17
public
:
18
ScriptingManager
(
Context
* context);
19
20
void
initialize();
21
void
cleanup();
22
23
void
addScriptingEngine(std::unique_ptr<ScriptingEngine> jsEngine);
24
25
ScriptContextHandle createContext(
Cogs::ComponentModel::Entity
* entity,
const
StringView
& source, ScriptFlags flags);
26
27
std::vector<std::unique_ptr<ScriptingEngine>> engines;
28
};
29
}
30
}
Cogs::ComponentModel::Entity
Container for components, providing composition of dynamic entities.
Definition:
Entity.h:18
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::ScriptingManager
Definition:
ScriptingManager.h:16
Cogs::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Generated by
1.9.6