Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
ScriptComponent.hpp
1#pragma once
2
3#include <string>
4#include "EngineCore/ECS/Entity.hpp"
5#include "EngineCore/Reflection/ComponentReflection.hpp"
6#include "Plugins/ScriptCSharp/ScriptClass.hpp"
7
8namespace Grindstone::Scripting::CSharp {
10 std::string assembly;
11 std::string scriptNamespace;
12 std::string scriptClass;
13 ScriptClass* monoClass = nullptr;
14 MonoObject* scriptObject = nullptr;
15
16 REFLECT("CSharpScript")
17 };
18
19 void SetupCSharpScriptComponent(entt::registry&, entt::entity);
20 void DestroyCSharpScriptComponent(entt::registry&, entt::entity);
21}
Definition ScriptClass.hpp:23
Definition ScriptComponent.hpp:9