You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows users to utilize things like `StateScoped` and run systems
more efficiently using `OnEnter` or `OnExit` without evaluating
conditions every frame.
As a result, we now require `StatesPlugin` to be present. It's included
by default in `DefaultPlugins`, but with `MinimalPlugins` you have to add
it manually. In tests, I had to add `StatesPlugin` everywhere.
This also changes the behavior a little bit:
- On disconnect, we still apply all received messages and disconnect
only after that, because the `StateTransitions` schedule runs right after
`PreUpdate`. But I think this behavior is actually better.
- We no longer check if `RepliconClient` or `RepliconServer` can
actually accept messages. I currently preserved the original behavior
where we reset them after exiting `Connected` or `Running`. But it might
be worth considering doing a reset on exiting `Disconnected` or `Stopped`
to ensure a clean start, like we did with events. I would appreciate
opinions on this.
Fix formatting
Fix tests
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
15
15
### Changed
16
16
17
+
- Rename `RepliconClientStatus` to `ClientState` and `RepliconServerStatus` to `ServerState`. They are now regular Bevy states. As result, we now require `StatesPlugin` to be added. It's present by default in `DefaultPlugins`, but with `MinimalPlugins` you have to add it manually.
17
18
-`AppRuleExt::replicate_with` now accepts `IntoReplicationRule` trait that allows to define rules with multiple components.
18
19
- Rename `GroupReplication` into `BundleReplication`.
19
20
- Rename `AppRuleExt::replicate_group` into `AppRuleExt::replicate_bundle`.
@@ -30,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
31
31
32
-`WriteCtx::commands`. You can now insert and remove components directly through `DeferredEntity`.
32
33
- Deprecated methods.
34
+
- Methods in `RepliconServer` and `RepliconClient` that updated the connection state. Use Bevy's state API with `ServerState` and `ClientState` instead.
35
+
- All provided run conditions. Just use `in_state` or `OnEnter`/`OnExit` with `ServerState` and `ClientState` instead.
0 commit comments