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
|
add_executable(eco2d-server
|
||||||
source/main.c
|
source/main.c
|
||||||
|
@ -9,14 +9,13 @@ add_executable(eco2d-server
|
||||||
source/world/blocks.c
|
source/world/blocks.c
|
||||||
|
|
||||||
header/network.h
|
header/network.h
|
||||||
header/platform.h
|
|
||||||
header/utils/options.h
|
header/utils/options.h
|
||||||
header/world/perlin.h
|
header/world/perlin.h
|
||||||
header/world/world.h
|
header/world/world.h
|
||||||
header/world/blocks.h
|
header/world/blocks.h
|
||||||
header/world/blocks_info.h
|
header/world/blocks_info.h
|
||||||
|
|
||||||
${COMPONENTS}
|
${MODULES}
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(eco2d-server header)
|
include_directories(eco2d-server header)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "flecs/flecs.h"
|
#include "flecs/flecs.h"
|
||||||
|
|
||||||
#include "components/general.h"
|
#include "modules/general.h"
|
||||||
|
|
||||||
typedef Vector2D Velocity;
|
typedef Vector2D Velocity;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "components/controllers.h"
|
#include "modules/controllers.h"
|
||||||
|
|
||||||
#include "components/general.h"
|
#include "modules/general.h"
|
||||||
#include "components/physics.h"
|
#include "modules/physics.h"
|
||||||
|
|
||||||
void ControllersImport(ecs_world_t *ecs) {
|
void ControllersImport(ecs_world_t *ecs) {
|
||||||
ECS_MODULE(ecs, Controllers);
|
ECS_MODULE(ecs, Controllers);
|
|
@ -1,4 +1,4 @@
|
||||||
#include "components/general.h"
|
#include "modules/general.h"
|
||||||
|
|
||||||
void GeneralImport(ecs_world_t *ecs) {
|
void GeneralImport(ecs_world_t *ecs) {
|
||||||
ECS_MODULE(ecs, General);
|
ECS_MODULE(ecs, General);
|
|
@ -1,4 +1,4 @@
|
||||||
#include "components/net.h"
|
#include "modules/net.h"
|
||||||
|
|
||||||
void NetImport(ecs_world_t *ecs) {
|
void NetImport(ecs_world_t *ecs) {
|
||||||
ECS_MODULE(ecs, Net);
|
ECS_MODULE(ecs, Net);
|
|
@ -1,4 +1,4 @@
|
||||||
#include "components/physics.h"
|
#include "modules/physics.h"
|
||||||
|
|
||||||
void PhysicsImport(ecs_world_t *ecs) {
|
void PhysicsImport(ecs_world_t *ecs) {
|
||||||
ECS_MODULE(ecs, Physics);
|
ECS_MODULE(ecs, Physics);
|
|
@ -11,9 +11,9 @@
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "world/world.h"
|
#include "world/world.h"
|
||||||
|
|
||||||
#include "components/general.h"
|
#include "modules/general.h"
|
||||||
#include "components/controllers.h"
|
#include "modules/controllers.h"
|
||||||
#include "components/net.h"
|
#include "modules/net.h"
|
||||||
|
|
||||||
#include "assets.h"
|
#include "assets.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "zpl.h"
|
#include "zpl.h"
|
||||||
#include "librg.h"
|
#include "librg.h"
|
||||||
#include "components/general.h"
|
#include "modules/general.h"
|
||||||
#include "world/world.h"
|
#include "world/world.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in New Issue