]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/goals.h
(#819) Integrate LevelEditor Regions with Level
[nothing.git] / src / game / level / goals.h
index bfc0166d6d02238290416be2d7cb8ce0132bef76..b1783ebf1158a39ded04214cb907a6dd23d3714d 100644 (file)
@@ -1,16 +1,19 @@
 #ifndef GOALS_H_
 #define GOALS_H_
 
-#include <SDL2/SDL.h>
+#include <SDL.h>
 
 #include "game/camera.h"
 #include "game/level/player.h"
 #include "game/sound_samples.h"
+#include "ebisp/expr.h"
 
 typedef struct Goals Goals;
 typedef struct LineStream LineStream;
+typedef struct PointLayer PointLayer;
 
 Goals *create_goals_from_line_stream(LineStream *line_stream);
+Goals *create_goals_from_point_layer(const PointLayer *point_layer);
 void destroy_goals(Goals *goals);
 
 Rect goals_hitbox(const Goals *goals);
@@ -21,11 +24,13 @@ int goals_sound(Goals *goals,
                 Sound_samples *sound_samples);
 void goals_update(Goals *goals,
                   float delta_time);
-void goals_hide(Goals *goals,
-                Rect player_hitbox);
+void goals_hide_from_player(Goals *goals,
+                            Rect player_hitbox);
 void goals_checkpoint(const Goals *goals,
                       Player *player);
 void goals_cue(Goals *goals,
                const Camera *camera);
 
+struct EvalResult goals_send(Goals *goals, Gc *gc, struct Scope *scope, struct Expr path);
+
 #endif  // GOALS_H_