]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/boxes.h
(#694) Fix box pushing mechanics
[nothing.git] / src / game / level / boxes.h
index 608c36b862c085f45009b1e5fb0893270f3dd445..207d1278906c76e6c9f6444cc9c99fcbd65daf55 100644 (file)
@@ -4,13 +4,14 @@
 #include "game/camera.h"
 #include "game/level/platforms.h"
 #include "lava.h"
+#include "ebisp/expr.h"
 
 typedef struct Boxes Boxes;
 typedef struct Player Player;
 typedef struct Physical_world Physical_world;
 typedef struct LineStream LineStream;
 
-Boxes *create_boxes_from_line_stream(LineStream *line_stream);
+Boxes *create_boxes_from_line_stream(LineStream *line_stream, RigidBodies *rigid_bodies);
 void destroy_boxes(Boxes *boxes);
 
 int boxes_render(Boxes *boxes, Camera *camera);
@@ -21,6 +22,7 @@ void boxes_float_in_lava(Boxes *boxes, Lava *lava);
 int boxes_add_to_physical_world(const Boxes *boxes,
                                 Physical_world *Physical_world);
 
-Rigid_rect *boxes_rigid_rect(Boxes *boxes, const char *id);
+struct EvalResult
+boxes_send(Boxes *boxes, Gc *gc, struct Scope *scope, struct Expr path);
 
 #endif  // BOXES_H_