Skip to content

Commit 631ca1e

Browse files
committed
All context implentations done. Adding markers then moving to testing
1 parent 6798356 commit 631ca1e

File tree

8 files changed

+527
-268
lines changed

8 files changed

+527
-268
lines changed

ecsact/entt/detail/system_execution_context.hh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ struct ecsact_system_execution_context {
3434
ecsact::entt::entity_id entity;
3535
::entt::registry* registry = nullptr;
3636

37+
// pass in the context to this class that's a pointer
38+
// context(ptr) = parent_ctx(ptr)
39+
// no longer dependent on context ptr
40+
// parent_ctx made a copy of the pointer
41+
42+
ecsact_system_execution_context* parent_ctx = nullptr;
43+
3744
virtual ~ecsact_system_execution_context() = default;
3845

3946
virtual auto action( //

ecsact/entt/execution.hh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <cassert>
66
#include <span>
77
#include <type_traits>
8+
// #include "ecsact/entt/detail/system_execution_context.hh"
89
#include "ecsact/runtime/common.h"
910
#include "entt/entity/registry.hpp"
1011
#include "ecsact/entt/detail/globals.hh"
@@ -92,7 +93,10 @@ struct actions_map {
9293
* `ecsact_rt_entt_codegen`.
9394
*/
9495
template<typename System>
95-
auto execute_system(::entt::registry&) -> void {
96+
auto execute_system( //
97+
::entt::registry& registry,
98+
ecsact_system_execution_context* parent
99+
) -> void {
96100
static_assert(detail::unimplemented_by_codegen<System>, R"(
97101
-----------------------------------------------------------------------------
98102
| (!) CODEGEN ERROR |

0 commit comments

Comments
 (0)