]> 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 76f8e5bde3782c7ef687431ee14f8ebe4efc83c4..97d79043382b743a5aee157b9e773976034a282d 100644 (file)
@@ -4,12 +4,15 @@
 #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_stream(FILE *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);
@@ -17,9 +20,10 @@ 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);
 
-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_