23 lines
No EOL
385 B
C++
23 lines
No EOL
385 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <system.hpp>
|
|
#include <angelscript.h>
|
|
|
|
class Entity;
|
|
|
|
class ScriptSystem : public System
|
|
{
|
|
public:
|
|
void Initialize() override;
|
|
void Cleanup() override;
|
|
|
|
void Update() override;
|
|
|
|
private:
|
|
void RunFunction(const std::string& name, const std::string& module_name);
|
|
|
|
Entity* GetEntity();
|
|
|
|
asIScriptEngine* m_scriptEngine;
|
|
}; |