]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mutators/events.qh
Add hooks to tag index
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mutators / events.qh
index 16ae922f220ba774fb3dfdc892eb411de9b89da1..363af87a0ef216cf00b33c619b26bb665a5c2dc5 100644 (file)
@@ -76,4 +76,16 @@ MUTATOR_HOOKABLE(EditProjectile, EV_EditProjectile);
 /* Called when projectiles are precached */
 MUTATOR_HOOKABLE(PrecacheProjectiles, EV_NO_ARGS);
 
+/** Called when updating the attached tags index */
+#define EV_TagIndex_Update(i, o) \
+    /** entity id */ i(entity, self) \
+    /**/
+MUTATOR_HOOKABLE(TagIndex_Update, EV_TagIndex_Update);
+
+/** Called when setting the attached tags */
+#define EV_TagIndex_Apply(i, o) \
+    /** entity id */ i(entity, self) \
+    /**/
+MUTATOR_HOOKABLE(TagIndex_Apply, EV_TagIndex_Apply);
+
 #endif