code: components -> modules

isolation_bkp/dynres
Dominik Madarász 2021-01-19 11:31:23 +01:00
parent 59e82f618d
commit 12d9f2da1b
11 changed files with 13 additions and 14 deletions

View File

@ -1,4 +1,4 @@
file(GLOB COMPONENTS header/components/*.h source/components/*.c)
file(GLOB MODULES header/modules/*.h source/modules/*.c)
add_executable(eco2d-server
source/main.c
@ -9,14 +9,13 @@ add_executable(eco2d-server
source/world/blocks.c
header/network.h
header/platform.h
header/utils/options.h
header/world/perlin.h
header/world/world.h
header/world/blocks.h
header/world/blocks_info.h
${COMPONENTS}
${MODULES}
)
include_directories(eco2d-server header)

View File

@ -1,7 +1,7 @@
#pragma once
#include "flecs/flecs.h"
#include "components/general.h"
#include "modules/general.h"
typedef Vector2D Velocity;

View File

@ -1,7 +1,7 @@
#include "components/controllers.h"
#include "modules/controllers.h"
#include "components/general.h"
#include "components/physics.h"
#include "modules/general.h"
#include "modules/physics.h"
void ControllersImport(ecs_world_t *ecs) {
ECS_MODULE(ecs, Controllers);

View File

@ -1,4 +1,4 @@
#include "components/general.h"
#include "modules/general.h"
void GeneralImport(ecs_world_t *ecs) {
ECS_MODULE(ecs, General);

View File

@ -1,4 +1,4 @@
#include "components/net.h"
#include "modules/net.h"
void NetImport(ecs_world_t *ecs) {
ECS_MODULE(ecs, Net);

View File

@ -1,4 +1,4 @@
#include "components/physics.h"
#include "modules/physics.h"
void PhysicsImport(ecs_world_t *ecs) {
ECS_MODULE(ecs, Physics);

View File

@ -11,9 +11,9 @@
#include "network.h"
#include "world/world.h"
#include "components/general.h"
#include "components/controllers.h"
#include "components/net.h"
#include "modules/general.h"
#include "modules/controllers.h"
#include "modules/net.h"
#include "assets.h"

View File

@ -1,6 +1,6 @@
#include "zpl.h"
#include "librg.h"
#include "components/general.h"
#include "modules/general.h"
#include "world/world.h"
typedef struct {