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