aboutsummaryrefslogtreecommitdiff
path: root/eng/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'eng/src/game.c')
-rw-r--r--eng/src/game.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/eng/src/game.c b/eng/src/game.c
new file mode 100644
index 0000000..9ea665c
--- /dev/null
+++ b/eng/src/game.c
@@ -0,0 +1,16 @@
+Game *
+game_create(void)
+{
+ Game *const this = malloc(sizeof(Game));
+ if (this == NULL)
+ panic("%s", strerror(errno));
+ memset(this, 0, sizeof(*this));
+ game_init(this);
+ return this;
+}
+
+void
+game_destroy(Game *this)
+{
+ free(this);
+}