Enabled for entities is now a friend of ECS::World
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
|
||||
#include <Systems/ECS.hpp>
|
||||
#include <Systems/ECS/BuiltinComponents.hpp>
|
||||
#include <utility>
|
||||
|
||||
bool Tourmaline::Systems::Components::Enabled::isEnabled() { return enabled; }
|
||||
void Tourmaline::Systems::Components::Enabled::setEnabled(bool enable) {
|
||||
ownerWorld->entitiesToDisable.push_back({this, enable});
|
||||
ownerWorld->entitiesToDisable.emplace(std::pair{this, enable});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user