-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ made WordIsolator an Enumerator. + Turned AttendanceManager into the singleton pattern. + turned Commands into a singleton. + replaced string literal empties with string.Empty (where applicable). + fixed up comments. + removed unecessary interface. + turned FactoryReset into a new interface IResettable(). + moved models to their own files.
- Loading branch information
Samuel
committed
Feb 12, 2018
1 parent
515fd65
commit 29e8b6c
Showing
12 changed files
with
249 additions
and
128 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,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SETextToSpeechMod.LookUpTables | ||
{ | ||
class Commands | ||
{ | ||
public readonly string CHANGE_VOICE_TO_MAREK = "[ MAREK"; | ||
//public readonly string CHANGE_VOICE_TO_HAWKING {get; private set;} = "[ JOHN MADDEN"; | ||
public readonly string CHANGE_VOICE_TO_GLADOS = "[ GLADOS"; | ||
|
||
public readonly string[] VoiceCollection; | ||
|
||
public readonly string MUTE_PLAYER = "[ MUTE"; | ||
public readonly string UNMUTE_PLAYER = "[ UNMUTE"; | ||
public readonly int MUTING_MIN_SIZE = 3; | ||
|
||
public readonly string CHANGE_VOLUME = "[ VOLUME"; | ||
|
||
private static Commands instance = new Commands(); | ||
|
||
private Commands() | ||
{ | ||
VoiceCollection = new string[] | ||
{ | ||
CHANGE_VOICE_TO_MAREK, | ||
//CHANGE_VOICE_TO_HAWKING, | ||
CHANGE_VOICE_TO_GLADOS, | ||
}; | ||
} | ||
|
||
public static Commands GetSingleton() | ||
{ | ||
return instance; | ||
} | ||
} | ||
} |
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,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SETextToSpeechMod.Processing | ||
{ | ||
interface ISentenceReset | ||
{ | ||
void FactoryReset(string newSentence); | ||
} | ||
} |
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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SETextToSpeechMod.Processing | ||
{ | ||
public struct TimelineClip | ||
{ | ||
public int StartPoint { get; } | ||
public string ClipsSound { get; } | ||
|
||
internal TimelineClip (int inputPoint, string inputSound) | ||
{ | ||
this.StartPoint = inputPoint; | ||
this.ClipsSound = inputSound; | ||
} | ||
} | ||
} |
Oops, something went wrong.