Add more actions to a state

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

The issue names no files. Start by locating the IActionState interface and its existing implementation in the Nt.Automaton repository, and see how states currently hold or run actions. Add an AddAction(...) method that attaches an action to a state, and an OnCondition(...) method that sets the condition under which that action runs. Done means a state can hold several actions, each gated by its own condition, with a test showing that only the actions whose conditions hold are performed.

Written by the indexing model from the issue text.

Description

enhancement good first issue

A state should have several actions linked to it, with each some conditions to be performed. Please add it with a method AddAction(...) and OnCondition(...) under an implementation of IActionState.

Dominant language
C#
Stars
0
Forks
1
Avg merge
1h 1m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Natvs/Nt.Automaton

All issues in Natvs/Nt.Automaton

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.