2024-09-16 06:07:01 +00:00
|
|
|
#ifndef TWN_GAME_OBJECT_H
|
|
|
|
#define TWN_GAME_OBJECT_H
|
2024-08-26 21:33:37 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* game object provides an interface for bridging between game code and engine.
|
|
|
|
* for example, it might implement dynamic load libraries with hot reloading.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
void game_object_load(void);
|
|
|
|
|
|
|
|
void game_object_unload(void);
|
|
|
|
|
|
|
|
/* returns true if reload happened, otherwise false */
|
|
|
|
bool game_object_try_reloading(void);
|
|
|
|
|
|
|
|
void game_object_tick(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|