]> git.lizzy.rs Git - nothing.git/blob - src/broadcast.h
Merge pull request #973 from zhiayang/master
[nothing.git] / src / broadcast.h
1 #ifndef BROADCAST_H_
2 #define BROADCAST_H_
3
4 #include "ebisp/expr.h"
5
6 typedef struct Broadcast Broadcast;
7 typedef struct Game Game;
8
9 Broadcast *create_broadcast(Game *game);
10 void destroy_broadcast(Broadcast *broadcast);
11
12 struct EvalResult
13 broadcast_send(Broadcast *broadcast,
14                Gc *gc,
15                struct Scope *scope,
16                struct Expr path);
17
18 void broadcast_load_library(Broadcast *broadcast,
19                             Gc *gc,
20                             struct Scope *scope);
21
22 struct EvalResult
23 unknown_target(Gc *gc, const char *source, const char *target);
24
25 #endif  // BROADCAST_H_