]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/platforms.qh
Move non-generic entity flags to their own headers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / platforms.qh
index 69ad2fae5fdccd1b49cd3de52462a7f089c30543..346cebc7163dfade8657cba5caa5e3cc455838c6 100644 (file)
@@ -1,20 +1,15 @@
-#ifndef PLATFORMS_H
-#define PLATFORMS_H
+#pragma once
 
-.float dmgtime2;
 
-void() plat_center_touch;
-void() plat_outside_touch;
-void() plat_trigger_use;
-void() plat_go_up;
-void() plat_go_down;
-void() plat_crush;
-const float PLAT_LOW_TRIGGER = 1;
+const int PLAT_LOW_TRIGGER = BIT(0);
 
-.float dmg;
+.float dmgtime2;
 
-#ifdef CSQC
-void ent_plat_trigger();
-#endif
+void plat_center_touch(entity this, entity toucher);
+void plat_outside_touch(entity this, entity toucher);
+void plat_trigger_use(entity this, entity actor, entity trigger);
+void plat_go_up(entity this);
+void plat_go_down(entity this);
+void plat_crush(entity this, entity blocker);
 
-#endif
+.float dmg;