Skip to content

Commit

Permalink
0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldom-SE committed Jan 13, 2024
1 parent 478289a commit ff824ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit ff824ec

Please sign in to comment.