-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating variable factory and adding start and exit functions
- Loading branch information
1 parent
667a953
commit c2ea759
Showing
3 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using ValkyrieFSMCore; | ||
|
||
namespace Valkyrie_Server.State_Machine.Function_Definitions | ||
{ | ||
public class ExitFunction : FunctionDefinition | ||
{ | ||
|
||
public ExitFunction() | ||
{ | ||
DefineFunction(); | ||
} | ||
|
||
protected override void DefineFunction() | ||
{ | ||
|
||
///close or resolve anything that might be neccesary for the process to complete here... | ||
|
||
Function = () => | ||
{ | ||
return 1; //exit the process | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using ValkyrieFSMCore; | ||
|
||
namespace Valkyrie_Server.State_Machine.Function_Definitions | ||
{ | ||
public sealed class StartFunction : FunctionDefinition | ||
{ | ||
public StartFunction() | ||
{ | ||
DefineFunction(); | ||
} | ||
|
||
protected override void DefineFunction() | ||
{ | ||
|
||
//do any setting up needed here if desired | ||
|
||
Function = () => | ||
{ | ||
return 1; //boot the process and start normally. | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters