MonoGameStateMachine 1.1.3.2

[DEPRECATED] This library is deprecated. Please use the normal StateMachine instead which is fully tested and being actively maintained. https://www.nuget.org/packages/StateMachine/
This project implements a Finite-State-Machine (FSM) designed to be used in games.
Furthermore it implements even a Stack-Based-FSM (SBFSM). So you may tell it to 'continue with the last state before the active one'.
You describe your FSM using a nice and well documented DSL (Domain Specific Language).

This machine also adds the function '.After(time)' to transitions so you can set timed transitions that don't necessarily have to have a trigger at all.

This replaces the code we usually had for keyboard-input (run-left-right-duck-jump), clicked buttons on the GUI (idle-over-down-refreshing), tower-states (idle-aiming-firing-reloading) or for the connection procedure when setting up peer2peer connections in our games....
This is a PCL (portable code library) so you should be able to use it in any of your MG projects.

Install-Package MonoGameStateMachine -Version 1.1.3.2
dotnet add package MonoGameStateMachine --version 1.1.3.2
<PackageReference Include="MonoGameStateMachine" Version="1.1.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGameStateMachine --version 1.1.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MonoGameStateMachine, 1.1.3.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGameStateMachine as a Cake Addin
#addin nuget:?package=MonoGameStateMachine&version=1.1.3.2

// Install MonoGameStateMachine as a Cake Tool
#tool nuget:?package=MonoGameStateMachine&version=1.1.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

[DEPRECATED] This library is deprecated. Please use the normal StateMachine instead which is fully tested and being actively maintained. https://www.nuget.org/packages/StateMachine/ nuget.org -> search for 'Unterrainer' or StateMachine.
The new version there has been updated to host the same functionality as this version here did. You just have to feed it a TimeSpan on Update() like so: Update(TimeSpan.FromMilliseconds(gameTime.ElapsedGameTime.TotalMilliseconds));

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.3.2 609 2/13/2018
1.1.3.1 522 1/27/2018
1.1.2.1 570 1/19/2018
1.0.9 487 11/4/2017
1.0.8.3 495 9/20/2017
1.0.2 488 9/9/2017