partially done work on total source tree rework, separation of engine context and game context, generalization of renderer for different backends as well as web platform target
This commit is contained in:
22
src/twn_game_object_c.h
Normal file
22
src/twn_game_object_c.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef TWN_GAME_OBJECT_H
|
||||
#define TWN_GAME_OBJECT_H
|
||||
|
||||
#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
|
Reference in New Issue
Block a user