]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/boxes.h
(#819) Integrate LevelEditor Regions with Level
[nothing.git] / src / game / level / boxes.h
index c4ee8eff9f8c54bb51273f920015cde3d012e4db..97d79043382b743a5aee157b9e773976034a282d 100644 (file)
@@ -8,11 +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, const Player *player);
+Boxes *create_boxes_from_rect_layer(const RectLayer *layer, RigidBodies *rigid_bodies);
 void destroy_boxes(Boxes *boxes);
 
 int boxes_render(Boxes *boxes, Camera *camera);
@@ -20,8 +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);
+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);