Skip to content

Instantly share code, notes, and snippets.

Created February 29, 2016 09:05
Show Gist options
  • Select an option

  • Save anonymous/e1cc27e5de62a84db262 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/e1cc27e5de62a84db262 to your computer and use it in GitHub Desktop.
using System;
public interface FSM<S,E,T> {
public void defineTransition(S oldState, E event, S newState, Action<T> action);
public void consumeEvent(E event);
public S getState();
public void setState(S newState);
}
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment