From c36462c98055131cfe2427a6de80452db4fbc0a2 Mon Sep 17 00:00:00 2001 From: codeboss <2422523675@qq.com> Date: Tue, 10 Jun 2025 21:00:30 +0800 Subject: [PATCH] update --- ComponentBasic/ComponentBasic.vcxproj | 4 ++-- ComponentBasic/ComponentBasic.vcxproj.filters | 4 ++-- ComponentBasic/EntityDocks.cpp | 2 +- ComponentBasic/EntityDocks.h | 2 +- ...invisible_component.cpp => InvisibleComponent.cpp} | 11 ++++++++++- .../{invisible_component.h => InvisibleComponent.h} | 0 6 files changed, 16 insertions(+), 7 deletions(-) rename ComponentBasic/{invisible_component.cpp => InvisibleComponent.cpp} (80%) rename ComponentBasic/{invisible_component.h => InvisibleComponent.h} (100%) diff --git a/ComponentBasic/ComponentBasic.vcxproj b/ComponentBasic/ComponentBasic.vcxproj index d8be6c4..a709a62 100644 --- a/ComponentBasic/ComponentBasic.vcxproj +++ b/ComponentBasic/ComponentBasic.vcxproj @@ -103,13 +103,13 @@ - + - + diff --git a/ComponentBasic/ComponentBasic.vcxproj.filters b/ComponentBasic/ComponentBasic.vcxproj.filters index 111d8d7..b178bbb 100644 --- a/ComponentBasic/ComponentBasic.vcxproj.filters +++ b/ComponentBasic/ComponentBasic.vcxproj.filters @@ -35,7 +35,7 @@ Header Files - + Header Files @@ -52,7 +52,7 @@ Source Files - + Source Files diff --git a/ComponentBasic/EntityDocks.cpp b/ComponentBasic/EntityDocks.cpp index 04e52e9..c91a77f 100644 --- a/ComponentBasic/EntityDocks.cpp +++ b/ComponentBasic/EntityDocks.cpp @@ -44,7 +44,7 @@ void DeduceFramework::deduceBegin(std::shared_ptr ins) } #include -#include "invisible_component.h" +#include "InvisibleComponent.h" DeduceFramework::DeduceFramework() :_factory_ins(std::make_shared()) { } diff --git a/ComponentBasic/EntityDocks.h b/ComponentBasic/EntityDocks.h index 9309f47..d01f44f 100644 --- a/ComponentBasic/EntityDocks.h +++ b/ComponentBasic/EntityDocks.h @@ -66,7 +66,7 @@ public: DeduceFramework(); - void init_backend(); + void init_framework(); // ProcList interface ======================================================= std::shared_ptr defaultNew() const override; diff --git a/ComponentBasic/invisible_component.cpp b/ComponentBasic/InvisibleComponent.cpp similarity index 80% rename from ComponentBasic/invisible_component.cpp rename to ComponentBasic/InvisibleComponent.cpp index b4029e7..46889e2 100644 --- a/ComponentBasic/invisible_component.cpp +++ b/ComponentBasic/InvisibleComponent.cpp @@ -1,4 +1,4 @@ -#include "invisible_component.h" +#include "InvisibleComponent.h" ComponentsInfoPull::ComponentsInfoPull() {} @@ -40,10 +40,19 @@ void ComponentsInfoPull::execute(std::shared_ptr map, out << rst; } +#include void ComponentsInfoPull::execute(std::shared_ptr map, std::shared_ptr in, QList>& out) { + auto ent_ins = std::dynamic_pointer_cast(this->_bind_entity.lock()); + auto comps = ent_ins->components(); + auto result = std::make_shared(); + result->reset(in->targetEntity(), in->sourceEntity()); + for (auto cp : comps) { + result->_signature_list.append(cp->signatureTypes()); + } + out << result; } std::shared_ptr ComponentsInfoPull::defaultNew() const diff --git a/ComponentBasic/invisible_component.h b/ComponentBasic/InvisibleComponent.h similarity index 100% rename from ComponentBasic/invisible_component.h rename to ComponentBasic/InvisibleComponent.h