-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reactive systems with init, update and remove as initial features
- Loading branch information
Showing
15 changed files
with
480 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
#include <entt/entt.hpp> | ||
|
||
namespace ecsact::entt { | ||
template<typename S> | ||
auto should_run_system(const ::entt::registry& registry) -> bool; | ||
} // namespace ecsact::entt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <format> | ||
|
||
#include <iostream> | ||
|
||
#include "rt_entt_codegen/core/core.hh" | ||
#include "ecsact/lang-support/lang-cc.hh" | ||
#include "ecsact/cpp_codegen_plugin_util.hh" | ||
|
||
auto ecsact::rt_entt_codegen::core::print_cleanup_system_notifies( | ||
codegen_plugin_context& ctx, | ||
const ecsact_entt_details& details | ||
) -> void { | ||
using ecsact::cc_lang_support::cpp_identifier; | ||
using ecsact::cpp_codegen_plugin_util::block; | ||
using ecsact::meta::decl_full_name; | ||
|
||
block( | ||
ctx, | ||
"auto cleanup_system_notifies(ecsact_registry_id registry_id) -> void", | ||
[&]() { | ||
for(auto system_id : details.all_systems) { | ||
auto notify_count = | ||
ecsact::meta::system_notify_settings_count(system_id); | ||
} | ||
} | ||
); | ||
} | ||
|
||
namespace ecsact::rt_entt_codegen::core::notify { | ||
auto print_system_oninit() -> void { | ||
} | ||
} // namespace ecsact::rt_entt_codegen::core::notify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.