aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:32:49 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:32:49 +0100
commit156906dca0b84d3fd3c889e1bcda12308b8fe793 (patch)
tree25cc254c7517f7163ec7fd4a6d975d9bad0fe973 /src/example
parentbe58cc9342a775c21ec2ee28923414a5c612fe6e (diff)
update clang-tidy configuration
Diffstat (limited to 'src/example')
-rw-r--r--src/example/ecs.cpp6
-rw-r--r--src/example/scene_manager.cpp8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/example/ecs.cpp b/src/example/ecs.cpp
index 7593faf..0c64373 100644
--- a/src/example/ecs.cpp
+++ b/src/example/ecs.cpp
@@ -38,8 +38,8 @@ int main() {
// Print the Metadata and Transform components
for (auto & m : metadata) {
- cout << "Id: " << m.get().GAME_OBJECT_ID << " Name: " << m.get().NAME
- << " Tag: " << m.get().TAG << " Parent: " << m.get().parent
+ 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) {
cout << c << " ";
@@ -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;
}
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp
index bfa9479..efbf2c2 100644
--- a/src/example/scene_manager.cpp
+++ b/src/example/scene_manager.cpp
@@ -52,8 +52,8 @@ int main() {
cout << "Metadata components of Scene1:" << endl;
// Print the Metadata
for (auto & m : metadata) {
- cout << "Id: " << m.get().GAME_OBJECT_ID << " Name: " << m.get().NAME
- << " Tag: " << m.get().TAG << endl;
+ cout << "Id: " << m.get().game_object_id << " Name: " << m.get().name
+ << " Tag: " << m.get().tag << endl;
}
// Set scene2 as the next scene
@@ -67,8 +67,8 @@ int main() {
cout << "Metadata components of Scene2:" << endl;
// Print the Metadata
for (auto & m : metadata) {
- cout << "Id: " << m.get().GAME_OBJECT_ID << " Name: " << m.get().NAME
- << " Tag: " << m.get().TAG << endl;
+ cout << "Id: " << m.get().game_object_id << " Name: " << m.get().name
+ << " Tag: " << m.get().tag << endl;
}
return 0;