Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
ScriptingSystem.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Engine.hpp"
4
5#include "NativeScripting.hpp"
6
9
19
28void SetOnDestroy(Engine::Core &core);
29} // namespace NativeScripting::System
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
entt::basic_registry< Id > Registry
The type of the registry used by the core. It is an alias for entt::basic_registry with Id as entity ...
Definition Core.hpp:37
Definition ScriptingSystem.hpp:7
void DestroyScript(Engine::Core::Registry &registry, Engine::EntityId entity)
Call OnDestroy function for entity and destroy the script instance.
Definition ScriptingSystem.cpp:16
void UpdateScripts(Engine::Core &core)
Definition ScriptingSystem.cpp:3
void SetOnDestroy(Engine::Core &core)
Sets the callback function to be called when the scripting system is destroyed.
Definition ScriptingSystem.cpp:23
Represents a unique identifier for an entity in the Engine's entity-component system....
Definition EntityId.hpp:14