e3ed625feb
sdfg
36 lines
613 B
C
36 lines
613 B
C
#pragma once
|
|
#include "ctrl.h"
|
|
#include "event.h"
|
|
#include "fumocommon.h"
|
|
#include "input.h"
|
|
#include "terminal.h"
|
|
#include "vector.h"
|
|
|
|
|
|
struct FumoCoroutine {
|
|
handler callback;
|
|
nsec timer;
|
|
nsec period;
|
|
};
|
|
|
|
struct FumoInstance {
|
|
struct Controller ctrl;
|
|
struct InputHandle input_hand;
|
|
struct Terminal term;
|
|
|
|
struct Event on_start;
|
|
struct Event on_update;
|
|
struct Event on_draw;
|
|
|
|
struct Vector coroutines;
|
|
|
|
nsec time;
|
|
nsec frametime;
|
|
};
|
|
|
|
|
|
void Panic(char *message);
|
|
|
|
bool CreateFumoInstance(struct FumoInstance *game);
|
|
|
|
bool FumoInstanceRun(struct FumoInstance *game); |