Fumofumotris/source/fumoengine/fumoengine.h
Julia e3ed625feb sd
sdfg
2024-05-15 00:44:13 -05:00

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);