aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 19:57:24 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 19:57:24 +0100
commitbfb4dffccec0a902586927c41b2454c8ddacd9e3 (patch)
tree854402efe33352d70406a8e54badee9306fd3d83 /src/crepe/api/Script.hpp
parent80712f111e5b703f4f91b9bd55f4dbb14cb14829 (diff)
add Log function to script
Diffstat (limited to 'src/crepe/api/Script.hpp')
-rw-r--r--src/crepe/api/Script.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/Script.hpp b/src/crepe/api/Script.hpp
index a064a90..4593d69 100644
--- a/src/crepe/api/Script.hpp
+++ b/src/crepe/api/Script.hpp
@@ -25,4 +25,9 @@ std::vector<std::reference_wrapper<T>> Script::get_components() const {
return mgr.get_components_by_id<T>(this->game_object_id);
}
+template <typename... Args>
+void Script::logf(Args &&... args) {
+ Log::logf(std::forward<Args>(args)...);
+}
+
} // namespace crepe