make prefabs folder

isolation
Dominik Madarász 2022-09-29 16:05:07 +02:00
parent 914b72c44f
commit 8e013c4171
19 changed files with 40 additions and 45 deletions

View File

@ -10,11 +10,12 @@ add_library(eco2d-foundation STATIC
src/ents/items.c src/ents/items.c
src/ents/entity.c src/ents/entity.c
src/ents/player.c
src/ents/vehicle.c
src/ents/storage.c
src/ents/device.c src/ents/device.c
src/ents/furnace.c
src/ents/prefabs/player.c
src/ents/prefabs/vehicle.c
src/ents/prefabs/storage.c
src/ents/prefabs/furnace.c
src/pkt/packet.c src/pkt/packet.c

View File

@ -1,7 +1,7 @@
#include "debug/debug_ui.h" #include "debug/debug_ui.h"
#include "debug/debug_draw.h" #include "debug/debug_draw.h"
#include "raylib.h" #include "raylib.h"
#include "ents/vehicle.h" #include "ents/prefabs/vehicle.h"
#include "core/camera.h" #include "core/camera.h"
#include "world/world.h" #include "world/world.h"
#include "core/game.h" #include "core/game.h"

View File

@ -1,6 +1,6 @@
// NOTE(zaklaus): access to spawners // NOTE(zaklaus): access to spawners
#include "ents/storage.h" #include "ents/prefabs/storage.h"
#include "ents/furnace.h" #include "ents/prefabs/furnace.h"
static struct { static struct {
asset_id id; asset_id id;

View File

@ -1,8 +1,5 @@
#include "ents/furnace.h" #include "furnace.h"
#include "ents/device.h" #include "ents/device.h"
#include "ents/entity.h"
#include "world/entity_view.h"
#include "world/world.h"
#include "ecs/components.h" #include "ecs/components.h"

View File

@ -1,13 +1,9 @@
#include "ents/player.h" #include "player.h"
#include "ents/entity.h"
#include "world/entity_view.h" #include "world/entity_view.h"
#include "flecs/flecs.h"
#include "librg.h"
#include "world/world.h" #include "world/world.h"
#include "ecs/components.h" #include "ecs/components.h"
#include "ecs/systems.h"
#include "zpl.h"
#define PLAYER_MAX_HP 100.0f #define PLAYER_MAX_HP 100.0f

View File

@ -1,7 +1,5 @@
#include "ents/storage.h" #include "storage.h"
#include "ents/device.h" #include "ents/device.h"
#include "ents/entity.h"
#include "world/entity_view.h"
#include "world/world.h" #include "world/world.h"
#include "ecs/components.h" #include "ecs/components.h"

View File

@ -1,5 +1,5 @@
#include "ents/vehicle.h" #include "vehicle.h"
#include "ents/entity.h"
#include "world/entity_view.h" #include "world/entity_view.h"
#include "world/world.h" #include "world/world.h"

View File

@ -21,3 +21,6 @@
// NOTE(zaklaus): Register an item // NOTE(zaklaus): Register an item
#include "items_list.c" #include "items_list.c"
// NOTE(zaklaus): Register a spawnable entity
#include "ents/entity_spawnlist.c"

View File

@ -16,7 +16,7 @@
#include "packets/pkt_00_init.h" #include "packets/pkt_00_init.h"
#include "world/world.h" #include "world/world.h"
#include "core/game.h" #include "core/game.h"
#include "ents/player.h" #include "ents/prefabs/player.h"
#include "ecs/components.h" #include "ecs/components.h"

View File

@ -6,7 +6,7 @@
#include "net/network.h" #include "net/network.h"
#include "world/entity_view.h" #include "world/entity_view.h"
#include "core/camera.h" #include "core/camera.h"
#include "ents/player.h" #include "ents/prefabs/player.h"
#include "ents/entity.h" #include "ents/entity.h"
#include "ecs/components.h" #include "ecs/components.h"

View File

@ -5,7 +5,7 @@
#include "net/network.h" #include "net/network.h"
#include "world/entity_view.h" #include "world/entity_view.h"
#include "core/camera.h" #include "core/camera.h"
#include "ents/player.h" #include "ents/prefabs/player.h"
#include "ecs/components.h" #include "ecs/components.h"
#include "ecs/systems.h" #include "ecs/systems.h"

View File

@ -9,7 +9,7 @@
#include "ecs/components.h" #include "ecs/components.h"
#include "ents/entity.h" #include "ents/entity.h"
#include "ents/vehicle.h" #include "ents/prefabs/vehicle.h"
#include "ents/items.h" #include "ents/items.h"
#include "world/blocks_info.h" #include "world/blocks_info.h"

View File

@ -9,7 +9,7 @@
#include "ecs/components.h" #include "ecs/components.h"
#include "ents/entity.h" #include "ents/entity.h"
#include "ents/vehicle.h" #include "ents/prefabs/vehicle.h"
#include "ents/items.h" #include "ents/items.h"
#include "world/blocks_info.h" #include "world/blocks_info.h"