added explicit extern specifiers to physics functions lacking them

pull/11/head
Sara 2023-06-25 18:13:12 +02:00
parent 7a2cb3cd5c
commit ead22d114c
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,6 @@
typedef struct object_t object_t;
typedef void(*collided_fn)(object_t*, struct object_t*);
typedef void(*collided_fn)(object_t*, object_t*);
typedef void(*solver_fn)(object_t* left, object_t* right);
@ -34,15 +33,16 @@ typedef struct physics_t {
};
} physics_t;
physics_t physics_default();
extern physics_t physics_default();
void object_broadcast_evt_collision(object_t* this, object_t* other);
extern void object_broadcast_evt_collision(object_t* this, object_t* other);
void physics_update();
extern void physics_update();
void move_and_slide(object_t* this, float delta_time);
extern short can_collide(const object_t* this);
extern void solve_collision_slide(object_t* left, object_t* right);
extern float get_solve_force(const object_t* this, const object_t* other, float* solve_x, float* solve_y);