2024-05-02 22:17:37 +00:00
|
|
|
#pragma once
|
|
|
|
#include "ctrl.h"
|
|
|
|
#include "event.h"
|
|
|
|
#include "fumocommon.h"
|
|
|
|
#include "input.h"
|
2024-05-07 22:10:15 +00:00
|
|
|
#include "terminal.h"
|
|
|
|
#include "vector.h"
|
2024-05-02 22:17:37 +00:00
|
|
|
|
|
|
|
|
2024-05-07 22:10:15 +00:00
|
|
|
struct FumoInstance {
|
2024-05-02 22:17:37 +00:00
|
|
|
struct Controller ctrl;
|
|
|
|
struct InputHandle input_hand;
|
2024-05-07 22:10:15 +00:00
|
|
|
struct Terminal term;
|
2024-05-02 22:17:37 +00:00
|
|
|
|
2024-05-07 22:10:15 +00:00
|
|
|
struct Event on_start;
|
|
|
|
struct Event on_update;
|
2024-05-02 22:17:37 +00:00
|
|
|
|
2024-05-07 03:29:10 +00:00
|
|
|
nsec time;
|
2024-05-07 22:10:15 +00:00
|
|
|
nsec frametime;
|
2024-05-02 22:17:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-05-06 05:52:30 +00:00
|
|
|
void Panic(char *message);
|
2024-05-02 22:17:37 +00:00
|
|
|
|
2024-05-07 22:10:15 +00:00
|
|
|
bool CreateFumoInstance(struct FumoInstance *game);
|
2024-05-02 22:17:37 +00:00
|
|
|
|
2024-05-07 22:10:15 +00:00
|
|
|
bool FumoInstanceRun(struct FumoInstance *game);
|