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)
|
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)
|
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
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
#include <ecs/entity.hpp>
|
#include <ecs/entity.hpp>
|
||||||
#include <ecs/scene.hpp>
|
#include <ecs/scene.hpp>
|
||||||
#include <yaml-cpp/yaml.h>
|
|
||||||
|
namespace YAML {
|
||||||
|
|
||||||
|
class Emitter;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
namespace lt {
|
namespace lt {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include <asset_manager/asset_manager.hpp>
|
#include <asset_manager/asset_manager.hpp>
|
||||||
#include <camera/component.hpp>
|
#include <camera/component.hpp>
|
||||||
#include <ecs/components.hpp>
|
#include <ecs/components.hpp>
|
||||||
#include <engine/utils/serializer.hpp>
|
#include <ecs/serializer.hpp>
|
||||||
#include <renderer/texture.hpp>
|
#include <yaml-cpp/yaml.h>
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
|
|
|
@ -4,7 +4,6 @@ if(NOT WIN32)
|
||||||
layer/layer.cpp
|
layer/layer.cpp
|
||||||
layer/layer_stack.cpp
|
layer/layer_stack.cpp
|
||||||
time/timer.cpp
|
time/timer.cpp
|
||||||
utils/serializer.cpp
|
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
add_library_module(engine
|
add_library_module(engine
|
||||||
|
@ -12,7 +11,6 @@ else()
|
||||||
layer/layer.cpp
|
layer/layer.cpp
|
||||||
layer/layer_stack.cpp
|
layer/layer_stack.cpp
|
||||||
time/timer.cpp
|
time/timer.cpp
|
||||||
utils/serializer.cpp
|
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -26,10 +24,7 @@ PUBLIC
|
||||||
lt_debug
|
lt_debug
|
||||||
ecs
|
ecs
|
||||||
window
|
window
|
||||||
|
|
||||||
glad
|
glad
|
||||||
|
|
||||||
opengl::opengl
|
opengl::opengl
|
||||||
yaml-cpp::yaml-cpp
|
|
||||||
EnTT::EnTT
|
EnTT::EnTT
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <camera/component.hpp>
|
#include <camera/component.hpp>
|
||||||
#include <ecs/components.hpp>
|
#include <ecs/components.hpp>
|
||||||
#include <ecs/scene.hpp>
|
#include <ecs/scene.hpp>
|
||||||
#include <engine/utils/serializer.hpp>
|
#include <ecs/serializer.hpp>
|
||||||
#include <input/input.hpp>
|
#include <input/input.hpp>
|
||||||
#include <input/key_codes.hpp>
|
#include <input/key_codes.hpp>
|
||||||
#include <mirror/editor_layer.hpp>
|
#include <mirror/editor_layer.hpp>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <asset_manager/asset_manager.hpp>
|
#include <asset_manager/asset_manager.hpp>
|
||||||
#include <ecs/scene.hpp>
|
#include <ecs/scene.hpp>
|
||||||
|
#include <ecs/serializer.hpp>
|
||||||
#include <engine/engine.hpp>
|
#include <engine/engine.hpp>
|
||||||
#include <engine/utils/serializer.hpp>
|
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
#include <mirror/panel/asset_browser.hpp>
|
#include <mirror/panel/asset_browser.hpp>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue