mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-06 00:05:05 +00:00
Major repo cleanout. Removes all files marked as REMOVE or MOVED and removes Cues and all assciated referenced.
This commit is contained in:
@@ -19,8 +19,6 @@ namespace PepperDash.Essentials.Core
|
||||
public override bool BoolValue { get { return _BoolValue; } }
|
||||
bool _BoolValue;
|
||||
|
||||
public override eCueType Type { get { return eCueType.Bool; } }
|
||||
|
||||
/// <summary>
|
||||
/// Fake value to be used in test mode
|
||||
/// </summary>
|
||||
@@ -45,12 +43,6 @@ namespace PepperDash.Essentials.Core
|
||||
ValueFunc = valueFunc;
|
||||
}
|
||||
|
||||
//public BoolFeedback(Cue cue, Func<bool> valueFunc)
|
||||
// : base(cue)
|
||||
//{
|
||||
// if (cue == null) throw new ArgumentNullException("cue");
|
||||
// ValueFunc = valueFunc;
|
||||
//}
|
||||
|
||||
public override void FireUpdate()
|
||||
{
|
||||
|
||||
@@ -20,10 +20,6 @@ namespace PepperDash.Essentials.Core
|
||||
public virtual string StringValue { get { return ""; } }
|
||||
public virtual string SerialValue { get { return ""; } }
|
||||
|
||||
//public Cue Cue { get; private set; }
|
||||
|
||||
public abstract eCueType Type { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Feedbacks can be put into test mode for simulation of events without real data.
|
||||
/// Using JSON debugging methods and the Set/ClearTestValue methods, we can simulate
|
||||
@@ -46,10 +42,7 @@ namespace PepperDash.Essentials.Core
|
||||
Key = key;
|
||||
}
|
||||
|
||||
//protected Feedback(Cue cue)
|
||||
//{
|
||||
// Cue = cue;
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clears test mode and fires update.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace PepperDash.Essentials.Core
|
||||
int _IntValue;
|
||||
public ushort UShortValue { get { return (ushort)_IntValue; } }
|
||||
|
||||
public override eCueType Type { get { return eCueType.Int; } }
|
||||
//public override eCueType Type { get { return eCueType.Int; } }
|
||||
|
||||
public int TestValue { get; private set; }
|
||||
|
||||
@@ -34,13 +34,6 @@ namespace PepperDash.Essentials.Core
|
||||
ValueFunc = valueFunc;
|
||||
}
|
||||
|
||||
//public IntFeedback(Cue cue, Func<int> valueFunc)
|
||||
// : base(cue)
|
||||
//{
|
||||
// if (cue == null) throw new ArgumentNullException("cue");
|
||||
// ValueFunc = valueFunc;
|
||||
//}
|
||||
|
||||
public override void FireUpdate()
|
||||
{
|
||||
var newValue = InTestMode ? TestValue : ValueFunc.Invoke();
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace PepperDash.Essentials.Core
|
||||
public override string SerialValue { get { return _SerialValue; } }
|
||||
string _SerialValue;
|
||||
|
||||
public override eCueType Type { get { return eCueType.Serial; } }
|
||||
//public override eCueType Type { get { return eCueType.Serial; } }
|
||||
|
||||
/// <summary>
|
||||
/// Used in testing. Set/Clear functions
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace PepperDash.Essentials.Core
|
||||
public override string StringValue { get { return _StringValue; } } // ValueFunc.Invoke(); } }
|
||||
string _StringValue;
|
||||
|
||||
public override eCueType Type { get { return eCueType.String; } }
|
||||
|
||||
/// <summary>
|
||||
/// Used in testing. Set/Clear functions
|
||||
/// </summary>
|
||||
@@ -36,13 +34,7 @@ namespace PepperDash.Essentials.Core
|
||||
ValueFunc = valueFunc;
|
||||
}
|
||||
|
||||
//public StringFeedback(Cue cue, Func<string> valueFunc)
|
||||
// : base(cue)
|
||||
//{
|
||||
// if (cue == null) throw new ArgumentNullException("cue");
|
||||
// ValueFunc = valueFunc;
|
||||
|
||||
//}
|
||||
|
||||
public override void FireUpdate()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user