Skip to content

Commit

Permalink
fixing naming the start and end functions
Browse files Browse the repository at this point in the history
  • Loading branch information
EarliestFall988 committed Dec 9, 2023
1 parent fc6426a commit 64683ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions State Machine/Function Definitions/ExitFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class ExitFunction : FunctionDefinition

public ExitFunction()
{
Name = "Exit";
DefineFunction();
}

Expand Down
1 change: 1 addition & 0 deletions State Machine/Function Definitions/StartFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public sealed class StartFunction : FunctionDefinition
{
public StartFunction()
{
Name = "Start";
DefineFunction();
}

Expand Down
5 changes: 5 additions & 0 deletions State Machine/FunctionLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,16 @@ public void BuildFunctionLibrary()

#endregion


#region start and end functions (needed for the state machine to work)

var start = new StartFunction();
var end = new ExitFunction();

ImportedFunctions.Add(start.Name, start);
ImportedFunctions.Add(end.Name, end);

#endregion
}

/// <summary>
Expand Down

0 comments on commit 64683ce

Please sign in to comment.