mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
fix: makes IMatrixRouting use generic types.
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
namespace PepperDash.Essentials.Core.Routing
|
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, TInput> InputSlots { get; }
|
||||||
Dictionary<string, RoutingOutputSlotBase> OutputSlots { get; }
|
Dictionary<string, TOutput> OutputSlots { get; }
|
||||||
|
|
||||||
void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type);
|
void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
|
|||||||
{
|
{
|
||||||
return () =>
|
return () =>
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** Display Power is {0}", _PowerIsOn ? "on" : "off");
|
|
||||||
return _PowerIsOn;
|
return _PowerIsOn;
|
||||||
};
|
};
|
||||||
} }
|
} }
|
||||||
@@ -36,7 +35,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
|
|||||||
{
|
{
|
||||||
return () =>
|
return () =>
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsCoolingDown ? "Display is cooling down" : "Display has finished cooling down");
|
|
||||||
return _IsCoolingDown;
|
return _IsCoolingDown;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -47,7 +45,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays
|
|||||||
{
|
{
|
||||||
return () =>
|
return () =>
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsWarmingUp ? "Display is warming up" : "Display has finished warming up");
|
|
||||||
return _IsWarmingUp;
|
return _IsWarmingUp;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user