]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/goals.h
Merge pull request #1215 from gooddoog/387
[nothing.git] / src / game / level / goals.h
index de4900b9ec3657073fbb00557e3100cd0b7367df..013fbd41d610997240aa39021b19014398d9b225 100644 (file)
@@ -1,36 +1,33 @@
 #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"
+#include "config.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);
 
 int goals_render(const Goals *goals,
-                 Camera *camera);
+                 const Camera *camera);
 int goals_sound(Goals *goals,
                 Sound_samples *sound_samples);
 void goals_update(Goals *goals,
                   float delta_time);
-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);
 
-void goals_hide(Goals *goals, const char *id);
-
-struct EvalResult goals_send(Goals *goals, Gc *gc, struct Scope *scope, struct Expr path);
+void goals_hide(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
+void goals_show(Goals *goals, char goal_id[ENTITY_MAX_ID_SIZE]);
 
 #endif  // GOALS_H_