aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:18:54 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:18:54 +0100
commit90c6bf03e59fdec64f850310bcbff45ae86f69e3 (patch)
treef80305e8b712e17c41a1860ec82a139842c67ba0 /src/crepe/api/Script.h
parentf4824f5e7e6cee12bec602f3240770945a73d043 (diff)
more script utilities
Diffstat (limited to 'src/crepe/api/Script.h')
-rw-r--r--src/crepe/api/Script.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h
index 5862bae..a040608 100644
--- a/src/crepe/api/Script.h
+++ b/src/crepe/api/Script.h
@@ -90,6 +90,18 @@ protected:
*/
template <typename T>
RefVector<T> get_components_by_id(game_object_id_t id) const;
+ /**
+ * \copydoc ComponentManager::get_components_by_name
+ * \see ComponentManager::get_components_by_name
+ */
+ template <typename T>
+ RefVector<T> get_components_by_name(const std::string & name) const;
+ /**
+ * \copydoc ComponentManager::get_components_by_tag
+ * \see ComponentManager::get_components_by_tag
+ */
+ template <typename T>
+ RefVector<T> get_components_by_tag(const std::string & tag) const;
/**
* \brief Log a message using Log::logf