From 79415a29291fc7a3e6c403d02596afc07dfcaa53 Mon Sep 17 00:00:00 2001 From: Eric-Paul Ickhorn Date: Mon, 9 Sep 2024 14:54:06 +0200 Subject: [PATCH] Add engine core module The core module will connect all other modules. Currently, it can only display a message saying "The build-system is working!". --- .gitignore | 6 +++--- modules/core/inc-c/voxula/internals/core.h | 18 ++++++++++++++++++ modules/core/includes.txt | 6 ++++++ modules/core/src-c/main.c | 7 +++++++ scripts/build.bash | 0 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 modules/core/inc-c/voxula/internals/core.h create mode 100644 modules/core/includes.txt create mode 100644 modules/core/src-c/main.c mode change 100644 => 100755 scripts/build.bash diff --git a/.gitignore b/.gitignore index 92d8187..c233c6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.private/ -.build/ -voxula \ No newline at end of file +/.private/ +/.build/ +/voxula \ No newline at end of file diff --git a/modules/core/inc-c/voxula/internals/core.h b/modules/core/inc-c/voxula/internals/core.h new file mode 100644 index 0000000..cc94e23 --- /dev/null +++ b/modules/core/inc-c/voxula/internals/core.h @@ -0,0 +1,18 @@ + +#ifndef VOXULA_CORE_H +#define VOXULA_CORE_H + +#include +#include +#include + +#include + +typedef struct vx_core vx_core_s; + +struct vx_core +{ + vx_uuid_table_s *uuid_table; +}; + +#endif // VOXULA_CORE_H diff --git a/modules/core/includes.txt b/modules/core/includes.txt new file mode 100644 index 0000000..75300f2 --- /dev/null +++ b/modules/core/includes.txt @@ -0,0 +1,6 @@ +{module}/inc-c +{module-folder}/assets/inc-c +{module-folder}/ecs/inc-c +{module-folder}/renderer/inc-c +{module-folder}/utility/inc-c +{module-folder}/window/inc-c \ No newline at end of file diff --git a/modules/core/src-c/main.c b/modules/core/src-c/main.c new file mode 100644 index 0000000..0baadb1 --- /dev/null +++ b/modules/core/src-c/main.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char **argv) +{ + puts("The build-system is working!"); + return -1; +} diff --git a/scripts/build.bash b/scripts/build.bash old mode 100644 new mode 100755