]> git.lizzy.rs Git - nothing.git/blob - src/game/level/script.h
9e7816de955586b545c0dc8cb0525c4edcba9626
[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 Level Level;
7
8 Script *create_script_from_line_stream(LineStream *line_stream,
9                                        Level *level);
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 #endif  // SCRIPT_H_