#include #include #include #include #include #include using namespace Tourmaline; using namespace Systems; struct test : public ECS::Component { int x; }; int main() { ECS::World game; auto player = game.CreateEntity(); auto &coordinates = game.GetComponent(player); /* for (int x = 0; x < 100000; x++) { // Bad idea, for testing we do need to do this game.CreateEntity(); } */ coordinates.x += 4; Logging::LogFormatted("x = {}", "test", Logging::LogLevel::Info, coordinates.x); // This should fail auto &testComp = game.GetComponent(player); return 0; }