]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/boxes.h
(#824) Implement undo_history_push and undo_history_pop
[nothing.git] / src / game / level / boxes.h
index 92ba66d00e21213650c94bb7acc9e57c5e4e1d02..97d79043382b743a5aee157b9e773976034a282d 100644 (file)
@@ -8,10 +8,11 @@
 
 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, RigidBodies *rigid_bodies);
+Boxes *create_boxes_from_rect_layer(const RectLayer *layer, RigidBodies *rigid_bodies);
 void destroy_boxes(Boxes *boxes);
 
 int boxes_render(Boxes *boxes, Camera *camera);
@@ -19,10 +20,8 @@ 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);
+int boxes_add_box(Boxes *boxes, Rect rect, Color color);
+int boxes_delete_at(Boxes *boxes, Vec position);
 
 struct EvalResult
 boxes_send(Boxes *boxes, Gc *gc, struct Scope *scope, struct Expr path);