Skip to content

Commit 73ee3e4

Browse files
committed
Update changelog
- Improve formatting - Document latest changes to needsExitTime, etc.
1 parent 94f316f commit 73ee3e4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Changelog.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
### Added
66

7-
- `HasAction(name)` method to see if the currently active state (or any of its child states) have defined an action for the specified trigger. This can be used to implement default behaviours when the active state does not implement an action:
7+
- **New `HasAction(name)` method**: Added the ability to query whether the active state hierarchy (including nested states) has a handler for a specific action. This is ideal for implementing "fallback" logic when a command is ignored by the current state.
8+
9+
Example:
810
```csharp
911
if (fsm.HasAction("Shoot")) {
1012
fsm.OnAction("Shoot");
@@ -16,7 +18,9 @@
1618
}
1719
```
1820

19-
- `fsm.IsInitialized` property to check whether a state machine is currently running.
21+
- **`fsm.IsInitialized` property**: A new boolean flag to safely verify if a state machine has been started and is ready to process logic.
22+
23+
- **Dynamic state / transition configuration**: Key fields including `needsExitTime`, `forceInstantly`, `isGhostState`, and `isExitTransition` can now be modified at runtime. This allows states and transitions to adapt their behavior dynamically during execution, providing significantly more flexibility for complex logic.
2024

2125
### Improved
2226

0 commit comments

Comments
 (0)