mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
fix: makes IMatrixRouting use generic types.
This commit is contained in:
parent
595fb3894e
commit
d26c5344e4
2 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue