Skip to content

Commit

Permalink
Rebase, make it work withmy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelwan committed May 22, 2024
1 parent 36940aa commit f98ef0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ecsact/entt/detail/apply_pending.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ auto apply_pending_add(::entt::registry& registry) -> void {
registry.emplace<C>(entity);
});
} else {
registry.view<pending_add<C>>().each(
registry.view<pending_add<C>>().each( //
[&](auto entity, const pending_add<C>& comp) {
registry.emplace<C>(entity, comp.value);
registry.emplace<beforechange_storage<C>>(entity, comp.value, false);
registry
.emplace<exec_beforechange_storage<C>>(entity, comp.value, false);
}
);
}
Expand Down
3 changes: 2 additions & 1 deletion ecsact/entt/detail/internal_markers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ struct beforeremove_storage<C> {
template<typename C>
requires(!std::is_empty_v<C>)
struct exec_beforechange_storage {
C value;
C value;
bool has_update_occurred = false;
};

template<typename C>
Expand Down

0 comments on commit f98ef0b

Please # to comment.