aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/ecs.cpp4
-rw-r--r--src/example/scene_manager.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/example/ecs.cpp b/src/example/ecs.cpp
index dfd3595..7593faf 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 << " ";
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp
index 471c400..bfa9479 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;