Skip to content

Releases: TrentBest/FSM_API

Version 1.0.13

02 Dec 01:36

Choose a tag to compare

Version 1.0.13 marks a major milestone in stability and architectural transparency. This release eliminates a critical crash vector during high-load scenarios and refines the state lifecycle logic, making the engine robust enough for complex simulations.

🛡️ Critical Fixes

  • Iteration Safety: Resolved an InvalidOperationException that could occur when destroying FSM definitions or instances during an active update tick. We now safely snapshot collections before iteration, allowing you to modify the FSM structure dynamically inside your game loops without fear.
  • Lifecycle Logic: Fixed a behavior where re-entering a state (or delayed initialization) could incorrectly default to the InitialState. The system now correctly respects and enters the CurrentState.

🏗️ Architecture & Stability

  • Auto-Shutdown: Instances now automatically self-destruct if their underlying context becomes invalid (IStateContext.IsValid == false), preventing "zombie" processes from consuming cycles.
  • Internal API Exposed: We have opened up documentation for the Internal namespace (see README), giving advanced users and researchers insight into the FsmBucket and TickAll mechanics.
  • Enhanced Null Safety: Added defensive coding across the internal API to handle edge cases gracefully.

🧹 Cleanup

  • Removed the legacy HireMeFSMDemo to keep the package lightweight and focused purely on the API.
  • Fixed NuGet logo resolution for a polished presentation on package managers.

Get it on NuGet
Unity Package

V1.0.12

20 Nov 03:45
6dc4794

Choose a tag to compare

📦 Release v1.0.12: Stability and Performance Update

We are pleased to announce the release of v1.0.12 of TheSingularityWorkshop.FSM_API, a core update designed to solidify the foundation of your state management logic.

FSM_API is a modular, runtime-safe, and highly configurable Finite State Machine (FSM) framework for .NET applications. It is engineered to serve as a robust and reliable control plane for enterprise software, games, robotics, and reactive systems.

This release is fully integrated with our innovative deferred mutation handling architecture, which ensures thread-safe operations and eliminates common concurrency pitfalls by design.

Core Features for Reliable State Management:

Thread-Safe by Design: Ensures robust operation through deferred mutation handling processed sequentially on the main thread.

Framework Agnostic: Pure C# power with no external dependencies or boilerplate setup required.

Decoupled Logic: Operates on any custom C# object that implements IStateContext (POCO-friendly), ensuring a clean separation of concerns.

Flexible Ticking: Utilize Processing Groups to organize and control update cycles for multiple FSM instances, perfect for UI, AI, or physics.

Error-Tolerant: Built-in thresholds and diagnostics prevent runaway logic or invalid states, critical for mission-critical software.

Upgrade today to benefit from the speed, reliability, and architectural clarity of FSM_API v1.0.12!