diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-20 10:43:32 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-20 10:43:32 +0100 |
commit | 690471c7c4536c074a4dca5aab7cc618d47bfb5f (patch) | |
tree | 35dcf3858b8f86a031cf5070de9caa069af4257d /src/crepe/api/Script.h | |
parent | d81ecc242ff88ffd49e0b5296dfb23ab54a0cd78 (diff) |
merge with maser
Diffstat (limited to 'src/crepe/api/Script.h')
-rw-r--r-- | src/crepe/api/Script.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h index 2b70379..939d142 100644 --- a/src/crepe/api/Script.h +++ b/src/crepe/api/Script.h @@ -63,7 +63,14 @@ protected: */ template <typename T> std::vector<std::reference_wrapper<T>> get_components() const; - + + /** + * \brief Gets game object id this script is attached to + * + * \returns game object id + */ + game_object_id_t get_game_object_id() const {return this->game_object_id;}; + protected: // NOTE: Script must have a constructor without arguments so the game programmer doesn't need // to manually add `using Script::Script` to their concrete script class. |