Cogs.Core
ScriptComponent.h
1#pragma once
2
3#include "Scripting/ScriptingEngine.h"
4
5namespace Cogs
6{
7 namespace Core
8 {
10 {
11 public:
13 static void registerType();
14
15 std::string source;
16 ScriptFlags flags = ScriptFlags::SourcePath;
17 };
18 }
19}
20
21template<> inline Cogs::StringView getName<Cogs::Core::ScriptFlags>() { return "ScriptFlags"; }
22template<> inline Cogs::StringView getName<Cogs::Core::ScriptComponent>() { return "ScriptComponent"; }
Base class for Component instances.
Definition: Component.h:143
static void registerType()
Register the type in the type system.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23