Skip to content

laoguowangCP/godot-statechart-sharp

Repository files navigation

Statechart Sharp

A simple statechart plugin for Godot, implemented in C#.

Introduction

What is statechart?

  • A state machine.
  • Supports hierarchy states.
  • Has various state mode.

This plugin provides basic nodes to build statechart in Godot editor.

Quick Start

Important

.NET-enabled version of Godot is required.

Download repository, copy addons/statechart_sharp to your project folder. Build project once, then enable plugin in project setting. You'll see new nodes added to "create new node" interface:

ss_imported_nodes

Step 1 : Add nodes:

  • Add Statechart

    ss_add_statechart
  • Add State(s)

    ss_add_state
  • Add Transition(s) and Reaction(s)

    ss_add_transition

Step 2 : Set properties and connect signals.

Step 3 : Build and run.

Refer to manual to see how these nodes work together. Get example scenes in ./statechart_sharp_example folder.

Feature

  • Follow statechart specification:

    • Use document order.
    • Support automatic transition.
  • Designed for Godot:

    • Node based.
    • Support node loop events (process, input, etc.).
    • Choose your style: extend scripts, or use signals only.

About

A simple statechart plugin for Godot, implemented in C#.

Resources

License

Stars

Watchers

Forks

Packages

No packages published