src/behavior.c

changeset 277
9988e327176f
parent 276
789215559ea8
child 278
634fa2996d4e
--- a/src/behavior.c	Fri Sep 26 22:44:42 2025 +0200
+++ b/src/behavior.c	Thu Oct 09 19:03:32 2025 +0200
@@ -95,7 +95,9 @@
     return cx_strcast(behavior->name);
 }
 
-// TODO: add asc_behavior_find() and asc_behavior_find_global()
+AscBehavior *asc_behavior_find_(const AscSceneNode *node, cxstring name) {
+    return cxMapGet(node->behaviors, name);
+}
 
 void asc_behavior_enable_all(AscSceneNode *node) {
     CxMapIterator iter = cxMapIteratorValues(node->behaviors);

mercurial