AlexAegis / AlexAegis/rx_bevy

Exploration: Holding Operators

未关闭
#14 0 条评论 0 个 reaction 已指派 1 人 已被 @AlexAegis 认领 在 GitHub 查看
enhancement
主要语言
Rust
星标
25
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

Sometimes stuff needs to be re-calculated based on something every frame. These operators help "holding" a cached value for an amount of time, and re-emitting them at every tick.

- Held items should not be cloned, but replayed behind a read only pointer.
- Or if it's writable, maybe taking it would stop the hold prematurely

Note: This may be unneeded or even counter-productive, as there are other solution to keep referring to an unchanged value while reacting to something faster.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。