fix: makes IMatrixRouting use generic types.

This commit is contained in:
Neil Dorin
2024-03-28 19:55:53 -06:00
parent 595fb3894e
commit d26c5344e4
2 changed files with 3 additions and 6 deletions

View File

@@ -2,10 +2,10 @@
namespace PepperDash.Essentials.Core.Routing
{
public interface IMatrixRouting
public interface IMatrixRouting<TInput, TOutput> where TInput : IRoutingInputSlot where TOutput : IRoutingOutputSlot
{
Dictionary<string, RoutingInputSlotBase> InputSlots { get; }
Dictionary<string, RoutingOutputSlotBase> OutputSlots { get; }
Dictionary<string, TInput> InputSlots { get; }
Dictionary<string, TOutput> OutputSlots { get; }
void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type);
}

View File

@@ -26,7 +26,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
{
return () =>
{
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** Display Power is {0}", _PowerIsOn ? "on" : "off");
return _PowerIsOn;
};
} }
@@ -36,7 +35,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
{
return () =>
{
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsCoolingDown ? "Display is cooling down" : "Display has finished cooling down");
return _IsCoolingDown;
};
}
@@ -47,7 +45,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
{
return () =>
{
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsWarmingUp ? "Display is warming up" : "Display has finished warming up");
return _IsWarmingUp;
};
}