Thanks to visit codestin.com
Credit goes to github.com

Skip to content

StateSmith/StateSmith-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hello!

Make sure you've already gone through a tutorial already as these example projects aren't tutorials. They generally highlight a few interesting features.

New vs Old

Most of these examples use the older (but still good) .csx method of running StateSmith. You can search for ss.cli for newer examples. More will come.

You can generally learn lots from these older examples even if you aren't setup to run the .csx files. There's good stuff in the diagram files and also how the generated files are connected to user code.

Not all projects are listed below. Feel free to explore this directory. A number of the projects in here are straight up experimental. See each project's readme.

How to Use .csx Files?

Since 2024, I only recommend using .csx files if you need very advanced features of StateSmith like custom modding the state machine graph just before code gen.

See tutorial 2


StateSmith Examples

🌟 Features

✨ Advanced Features (require .csx)

Not recommended for beginners.


By Topic

πŸ“ Logging

πŸ”€ Concurrency

πŸ‘Ύ Video Game

  • mario-sm-3 - Adds invincible star state, history, thwomp. Uses new 0.12.0+ lib features. ss.cli drawio new
  • mario-sm-2 - Adds invincible star state and history. ss.cli plantuml
  • mario-sm-1

πŸ—„οΈ Web/Database

  • history-storage-1 Resumes a state machine from a clean start and some storage (file/database/...).

πŸ“± Menu / User Interface

πŸ•ΉοΈ Buttons/Input

⏚ Embedded

🌱 PlantUML


By Language

C

C#

  • csharp-space-menu-1 - Advanced menu system with C#. Concurrency. Deep nesting, entry/exit points, parent alias and more.

C++

  • cpp-inheritance-1 - Shows easy state machine testing. Uses a base class. ss.cli plantuml.
  • cpp-inheritance-2 - Shows easy state machine testing. Uses custom ClassCode. ss.cli plantuml.

C++ / Arduino

JavaScript


🏘️ Community Examples 🎁

  • Be the first to create an example and send us the link! It can be as simple or complicated as you like.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published