aboutsummaryrefslogtreecommitdiff
path: root/src/doc/feature/script_ecs.dox
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/feature/script_ecs.dox')
-rw-r--r--src/doc/feature/script_ecs.dox6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/feature/script_ecs.dox b/src/doc/feature/script_ecs.dox
index bbe1abc..8bd3376 100644
--- a/src/doc/feature/script_ecs.dox
+++ b/src/doc/feature/script_ecs.dox
@@ -40,14 +40,14 @@ using namespace crepe;
class MyScript : public Script {
void show_self() {
Metadata & own_metadata = get_component<Metadata>();
- Log::logf("My name is {}", own_metadata.name);
+ logf("My name is {}", own_metadata.name);
}
void list_enemies() {
RefVector<Metadata> enemies = get_components_by_tag<Metadata>("enemy");
- Log::logf("There are {} enemies:", enemies.size());
+ logf("There are {} enemies:", enemies.size());
for (const Metadata & enemy : enemies) {
- Log::logf("- {}", enemy.name);
+ logf("- {}", enemy.name);
}
}
};