]> git.lizzy.rs Git - nothing.git/blob - src/game/level/script.h
Merge pull request #1 from tsoding/master
[nothing.git] / src / game / level / script.h
1 #ifndef SCRIPT_H_
2 #define SCRIPT_H_
3
4 #include <stdbool.h>
5
6 typedef struct Script Script;
7 typedef struct LineStream LineStream;
8 typedef struct Broadcast Broadcast;
9
10 Script *create_script_from_line_stream(LineStream *line_stream,
11                                        Broadcast *broadcast);
12 void destroy_script(Script *script);
13
14 // TODO(#470): script_eval accepting string instead of expr is very error prone
15 int script_eval(Script *script, const char *source_code);
16
17 bool script_has_scope_value(const Script *script, const char *name);
18
19 #endif  // SCRIPT_H_