diff --git a/CHANGELOG.md b/CHANGELOG.md index d47709b..19a88f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## 0.9 (2024-01-12) + +### Added + +- `IntoSystem` trait, which allows systems which return `bool`, `Option`, or `Result`, and accept +`Entity` or nothing as input, to be used as triggers +- `TriggerIn` trait, which allows systems which accept nothing as input to be used as triggers +- `TriggerOut` trait, which allows triggers to output `bool` or `Option` without `BoolTrigger` and +`OptionTrigger` +- `SystemTrigger` type, which is also used for system triggers + +### Changed + +- `trans` and `trans_builder` each have a new type parameter, which should simply be elided with `_` +- Replaced all built-in trigger types with system equivalents +- Renamed `MachineState` to `EntityState` +- `Trigger` has an `Out` type and `init` and `check` functions, instead of `Param`, `Ok`, and `Err` +types and a `trigger` function + +### Removed + +- `BoolTrigger` and `OptionTrigger` + ## 0.8 (2023-11-12) ### Added diff --git a/Cargo.toml b/Cargo.toml index 4a8926a..fbce0ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "seldom_state" -version = "0.8.0" +version = "0.9.0" edition = "2021" categories = [ "game-development" ] description = "Component-based state machine plugin for Bevy. Useful for AI, player state, and other entities that occupy various states." diff --git a/README.md b/README.md index 9160ef7..62254bb 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ See the `chase.rs` example for further usage. | Bevy | `leafwing-input-manager` | `seldom_state` | | ---- | ------------------------ | -------------- | -| 0.12 | 0.11 | 0.8 | +| 0.12 | 0.11 | 0.8 - 0.9 | | 0.11 | 0.10 | 0.7 | | 0.10 | 0.9 | 0.5 - 0.6 | | 0.9 | 0.8 | 0.4 |