summaryrefslogtreecommitdiff
path: root/libphysics/dat.h
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-06-02 23:42:05 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-06-02 23:42:05 -0300
commit005f0a3185eb8085f6e0de11e3cfd0a3d9167719 (patch)
tree27e8268b818068a4ca574025ef3b04917dd8a044 /libphysics/dat.h
parent518b93c3a40b0c60054f50356357efc0ead36895 (diff)
parentff51d49dc9c7024d29b9177f8e748522625ff1f4 (diff)
Merge branch 'libphysics/generational_id'
Diffstat (limited to 'libphysics/dat.h')
-rw-r--r--libphysics/dat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libphysics/dat.h b/libphysics/dat.h
index 035bdcc..452aee6 100644
--- a/libphysics/dat.h
+++ b/libphysics/dat.h
@@ -3,6 +3,7 @@
typedef struct Body {
BodyType type;
int active;
+ int generation;
vec2 pos;
vec2 size;
vec2 vel;
@@ -34,6 +35,9 @@ void __phxbroadphasereset(void);
void __phxbroadphase(int n, BodyID bid[n]);
void __phxnarrowphase(int n, TestCollision coll[n]);
+Body *__getbodydata(BodyID id);
+BodyID __getbodyid(Body *);
+
extern int phxmapwidth, phxmapheight;
extern int *phxmapbuffer;