]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/boxes.h
(tsoding#1185) fix copy-paste refactoring error
[nothing.git] / src / game / level / boxes.h
index 10389ffd21ad47638bc745622d7a6af54d6bcb79..4f30cab4d679ffc998ad0dc2215cb5563682abee 100644 (file)
@@ -4,27 +4,22 @@
 #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;
+typedef struct Player Player;
+typedef struct RectLayer RectLayer;
 
-Boxes *create_boxes_from_line_stream(LineStream *line_stream);
+Boxes *create_boxes_from_rect_layer(const RectLayer *layer, RigidBodies *rigid_bodies);
 void destroy_boxes(Boxes *boxes);
 
-int boxes_render(Boxes *boxes, Camera *camera);
+int boxes_render(Boxes *boxes, const Camera *camera);
 int boxes_update(Boxes *boxes, float delta_time);
 
 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);
+int boxes_add_box(Boxes *boxes, Rect rect, Color color);
+int boxes_delete_at(Boxes *boxes, Vec2f position);
 
 #endif  // BOXES_H_