Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ZiwKerman/v1.0-beta-legacyIR-binding
V1.0 beta with legacy IR binding
- Loading branch information
Showing
13 changed files
with
1,160 additions
and
618 deletions.
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
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
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,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace IRSequencer.Core | ||
{ | ||
/// <summary> | ||
/// Implements State as in Finite State Machine for Sequencer. | ||
/// Each Sequence is supposed to begin and end at a certain State (could be the same State). | ||
/// Ideally a Vessel could have multiple Sequencers and thus multiple States, but for now we assume it has one. | ||
/// This will be remedied when we tie Sequencer to ModuleSequencer and allow multiple sequencers per vessel. | ||
/// Each Vessel/Sequencer is supposed to have at least one SequencerState (Default/Idle). | ||
/// </summary> | ||
public class SequencerState | ||
{ | ||
|
||
public string stateName = "Default"; | ||
|
||
public readonly Guid stateID; | ||
|
||
public SequencerState () | ||
{ | ||
stateID = Guid.NewGuid (); | ||
} | ||
|
||
public SequencerState (string newID) | ||
{ | ||
stateID = new Guid (newID); | ||
} | ||
|
||
public string Serialize() | ||
{ | ||
return stateID.ToString () + ":" + stateName.Replace (':', ' '); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.