refactor: move serializer from engine to ecs
This commit is contained in:
parent
0f3639e401
commit
e86f83fff1
6 changed files with 15 additions and 13 deletions
|
@ -1,2 +1,5 @@
|
|||
add_library_module(ecs entity.cpp scene.cpp uuid.cpp)
|
||||
target_link_libraries(ecs PUBLIC logger lt_debug EnTT::EnTT renderer input camera)
|
||||
add_library_module(ecs entity.cpp scene.cpp uuid.cpp serializer.cpp)
|
||||
target_link_libraries(ecs
|
||||
PUBLIC logger lt_debug EnTT::EnTT renderer input camera
|
||||
PRIVATE yaml-cpp::yaml-cpp asset_manager
|
||||
)
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
#include <ecs/entity.hpp>
|
||||
#include <ecs/scene.hpp>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
|
||||
namespace YAML {
|
||||
|
||||
class Emitter;
|
||||
|
||||
}
|
||||
|
||||
namespace lt {
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
#include <asset_manager/asset_manager.hpp>
|
||||
#include <camera/component.hpp>
|
||||
#include <ecs/components.hpp>
|
||||
#include <engine/utils/serializer.hpp>
|
||||
#include <renderer/texture.hpp>
|
||||
#include <ecs/serializer.hpp>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
|
||||
namespace YAML {
|
||||
|
|
@ -4,7 +4,6 @@ if(NOT WIN32)
|
|||
layer/layer.cpp
|
||||
layer/layer_stack.cpp
|
||||
time/timer.cpp
|
||||
utils/serializer.cpp
|
||||
)
|
||||
else()
|
||||
add_library_module(engine
|
||||
|
@ -12,7 +11,6 @@ else()
|
|||
layer/layer.cpp
|
||||
layer/layer_stack.cpp
|
||||
time/timer.cpp
|
||||
utils/serializer.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -26,10 +24,7 @@ PUBLIC
|
|||
lt_debug
|
||||
ecs
|
||||
window
|
||||
|
||||
glad
|
||||
|
||||
opengl::opengl
|
||||
yaml-cpp::yaml-cpp
|
||||
EnTT::EnTT
|
||||
)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <camera/component.hpp>
|
||||
#include <ecs/components.hpp>
|
||||
#include <ecs/scene.hpp>
|
||||
#include <engine/utils/serializer.hpp>
|
||||
#include <ecs/serializer.hpp>
|
||||
#include <input/input.hpp>
|
||||
#include <input/key_codes.hpp>
|
||||
#include <mirror/editor_layer.hpp>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <asset_manager/asset_manager.hpp>
|
||||
#include <ecs/scene.hpp>
|
||||
#include <ecs/serializer.hpp>
|
||||
#include <engine/engine.hpp>
|
||||
#include <engine/utils/serializer.hpp>
|
||||
#include <imgui.h>
|
||||
#include <mirror/panel/asset_browser.hpp>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue