Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
ScriptableEntity.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "entity/Entity.hpp"
4
7 public:
8 explicit ScriptableEntity(Engine::Entity ent) : entity(ent) {}
9 virtual ~ScriptableEntity() = default;
10 template <typename T> T &GetComponent(Engine::Core &core) { return entity.GetComponents<T>(); }
11
13};
14} // namespace NativeScripting::Utils
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Wrapper class providing a convenient interface for entity manipulation with the Core....
Definition Entity.hpp:20
T & GetComponent(Engine::Core &core)
Definition ScriptableEntity.hpp:10
ScriptableEntity(Engine::Entity ent)
Definition ScriptableEntity.hpp:8
Engine::Entity entity
Definition ScriptableEntity.hpp:12
Definition ScriptableEntity.hpp:5