code: components -> modules
parent
59e82f618d
commit
12d9f2da1b
|
@ -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)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
#include "flecs/flecs.h"
|
||||
|
||||
#include "components/general.h"
|
||||
#include "modules/general.h"
|
||||
|
||||
typedef Vector2D Velocity;
|
||||
|
|
@ -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);
|
|
@ -1,4 +1,4 @@
|
|||
#include "components/general.h"
|
||||
#include "modules/general.h"
|
||||
|
||||
void GeneralImport(ecs_world_t *ecs) {
|
||||
ECS_MODULE(ecs, General);
|
|
@ -1,4 +1,4 @@
|
|||
#include "components/net.h"
|
||||
#include "modules/net.h"
|
||||
|
||||
void NetImport(ecs_world_t *ecs) {
|
||||
ECS_MODULE(ecs, Net);
|
|
@ -1,4 +1,4 @@
|
|||
#include "components/physics.h"
|
||||
#include "modules/physics.h"
|
||||
|
||||
void PhysicsImport(ecs_world_t *ecs) {
|
||||
ECS_MODULE(ecs, Physics);
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "zpl.h"
|
||||
#include "librg.h"
|
||||
#include "components/general.h"
|
||||
#include "modules/general.h"
|
||||
#include "world/world.h"
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in New Issue