#include #include #include #include #include #include #include using namespace Tourmaline; using namespace Systems; int main() { ECS::World game; auto player = game.CreateEntity(); auto &coordinates = game.GetComponent(player); std::print("Entity {}, x = {}, y = {}, z = {}\n", player.asString(), coordinates.x, coordinates.y, coordinates.z); /* for (int x = 0; x < 100000; x++) { // Bad idea, for testing we do need to do this game.CreateEntity(); } */ coordinates.x += 4; coordinates.y -= 2.5; coordinates.z = -10; std::print("Entity {}, x = {}, y = {}, z = {}\n", player.asString(), coordinates.x, coordinates.y, coordinates.z); return 0; }