-
Notifications
You must be signed in to change notification settings - Fork 0
/
mode.h
44 lines (35 loc) · 889 Bytes
/
mode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "ccodoc.h"
#include "platform.h"
#include "renderer.h"
#include "time.h"
struct mode_ctx {
struct sig_handler* sig_handler;
};
enum mode_type {
mode_wabi,
mode_sabi,
};
struct mode {
bool ornamental;
bool debug;
struct ccodoc ccodoc;
struct timer timer;
struct {
struct renderer renderer;
struct {
struct canvas value;
struct canvas_curses delegate;
struct canvas_proxy proxy;
} canvas;
} rendering;
struct {
const char* tsutsu_drip;
const char* tsutsu_bump;
const char* uguisu_call;
} sound;
};
extern void init_mode(struct mode* mode);
extern void deinit_mode(struct mode* mode);
extern void run_mode_wabi(const struct mode_ctx* ctx, struct mode* mode);
extern void run_mode_sabi(const struct mode_ctx* ctx, struct mode* mode);