Restructure files
This commit is contained in:
@@ -9,13 +9,7 @@ add_subdirectory(engine/)
|
|||||||
|
|
||||||
|
|
||||||
add_executable(PixelDefense
|
add_executable(PixelDefense
|
||||||
game/systems/entity_systems.c
|
|
||||||
game/systems/systems.h
|
|
||||||
game/systems/ui_systems.c
|
|
||||||
|
|
||||||
game/utils/building_types.h
|
game/utils/building_types.h
|
||||||
game/utils/pathfinding.c
|
|
||||||
game/utils/pathfinding.h
|
|
||||||
|
|
||||||
game/buildings.c
|
game/buildings.c
|
||||||
game/buildings.h
|
game/buildings.h
|
||||||
@@ -26,6 +20,11 @@ add_executable(PixelDefense
|
|||||||
game/map_init.c
|
game/map_init.c
|
||||||
game/map_init.h
|
game/map_init.h
|
||||||
game/map_layers.h
|
game/map_layers.h
|
||||||
|
game/pathfinding.c
|
||||||
|
game/pathfinding.h
|
||||||
|
game/systems.h
|
||||||
|
game/systems_entity.c
|
||||||
|
game/systems_ui.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <rlImGui.h>
|
#include <rlImGui.h>
|
||||||
|
|
||||||
#include "systems/systems.h"
|
#include "systems.h"
|
||||||
#include "utils/building_types.h"
|
#include "utils/building_types.h"
|
||||||
#include "components.h"
|
#include "components.h"
|
||||||
#include "game_state.h"
|
#include "game_state.h"
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
#include "map_layers.h"
|
#include "map_layers.h"
|
||||||
#include "buildings.h"
|
#include "buildings.h"
|
||||||
|
|
||||||
#include "utils/pathfinding.h"
|
#include "pathfinding.h"
|
||||||
|
|
||||||
ECS_COMPONENT_DECLARE(Game);
|
ECS_COMPONENT_DECLARE(Game);
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <breeze.h>
|
#include <breeze.h>
|
||||||
|
|
||||||
#include "../components.h"
|
#include "components.h"
|
||||||
|
|
||||||
typedef struct PathMove {
|
typedef struct PathMove {
|
||||||
i8 x;
|
i8 x;
|
||||||
@@ -3,7 +3,12 @@
|
|||||||
|
|
||||||
#include <flecs.h>
|
#include <flecs.h>
|
||||||
|
|
||||||
#include "../components.h"
|
#include "components.h"
|
||||||
|
|
||||||
|
|
||||||
|
/**********************************
|
||||||
|
* Entity Systems
|
||||||
|
**********************************/
|
||||||
|
|
||||||
void renderEntities(ecs_iter_t *it);
|
void renderEntities(ecs_iter_t *it);
|
||||||
void updateAnimations(ecs_iter_t *it);
|
void updateAnimations(ecs_iter_t *it);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "systems.h"
|
#include "systems.h"
|
||||||
|
|
||||||
|
|
||||||
#include "../game_state.h"
|
#include "game_state.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <raymath.h>
|
#include <raymath.h>
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "systems.h"
|
#include "systems.h"
|
||||||
|
|
||||||
#include "../game_state.h"
|
#include "game_state.h"
|
||||||
|
|
||||||
void uiTask(ecs_iter_t *it) {
|
void uiTask(ecs_iter_t *it) {
|
||||||
const Game *game = ecs_singleton_get(ECS, Game);
|
const Game *game = ecs_singleton_get(ECS, Game);
|
||||||
Reference in New Issue
Block a user