|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Component storing all script instances for an entity. More...
#include <Common.hpp>
Public Member Functions | |
| bool | has (const std::string &name) const |
| Check if entity has a specific script component. | |
| ScriptInstance * | get (const std::string &name) |
| Get script instance by name (nullptr if not found). | |
| const ScriptInstance * | get (const std::string &name) const |
| void | add (ScriptInstance &&instance) |
| Add a script instance. | |
| void | remove (const std::string &name) |
| Remove script instance by name. | |
Public Attributes | |
| std::vector< ScriptInstance > | instances |
Component storing all script instances for an entity.
Definition at line 162 of file Common.hpp.
|
inline |
|
inline |
Get script instance by name (nullptr if not found).
Definition at line 174 of file Common.hpp.
References instances.
|
inline |
Definition at line 181 of file Common.hpp.
References instances.
|
inline |
Check if entity has a specific script component.
Definition at line 166 of file Common.hpp.
References instances.
|
inline |
| std::vector<ScriptInstance> esengine::ecs::Scripts::instances |