diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 12:33:37 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 12:33:37 +0100 |
commit | 96ef24654d2ee26184ebcb5b9092649e67afe5d9 (patch) | |
tree | 3149f522a7390a2f7ff98c2b7cc494cf2a69a0a0 /src/example/ecs.cpp | |
parent | cd0940f72e1e0d4abb0bc1ef5fb481b389a1f77a (diff) |
Made game_object_id const
Diffstat (limited to 'src/example/ecs.cpp')
-rw-r--r-- | src/example/ecs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/ecs.cpp b/src/example/ecs.cpp index 0c64373..dfd3595 100644 --- a/src/example/ecs.cpp +++ b/src/example/ecs.cpp @@ -38,7 +38,7 @@ int main() { // Print the Metadata and Transform components for (auto & m : metadata) { - cout << "Id: " << m.get().game_object_id << " Name: " << m.get().name + cout << "Id: " << m.get().GAME_OBJECT_ID << " Name: " << m.get().name << " Tag: " << m.get().tag << " Parent: " << m.get().parent << " Children: "; for (auto & c : m.get().children) { @@ -47,7 +47,7 @@ int main() { cout << endl; } for (auto & t : transform) { - cout << "Id: " << t.get().game_object_id << " Position: [" + cout << "Id: " << t.get().GAME_OBJECT_ID << " Position: [" << t.get().position.x << ", " << t.get().position.y << "]" << endl; } |