-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit never should have been this big, but .NET 6 got bundled in and here we are.
- Loading branch information
Tyler Reynolds
committed
Jan 12, 2022
1 parent
6c857c5
commit f5d10d6
Showing
35 changed files
with
771 additions
and
624 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// ReSharper disable UnusedAutoPropertyAccessor.Global | ||
// ReSharper disable ClassNeverInstantiated.Global | ||
|
||
using Core; | ||
|
||
#pragma warning disable 8618 | ||
|
||
namespace Configuration | ||
namespace Configuration; | ||
|
||
public class LedAction | ||
{ | ||
public class LedAction | ||
{ | ||
public string Color { get; set; } | ||
public Trigger Trigger { get; set; } | ||
} | ||
} | ||
public string Color { get; set; } | ||
public BaseTrigger Trigger { get; set; } | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
namespace Core; | ||
|
||
/** | ||
* Triggers if all of the child triggers pass. | ||
*/ | ||
public class AndTrigger : BaseTrigger<List<BaseTrigger>> | ||
{ | ||
public AndTrigger(IReadOnlyCollection<BaseTrigger> value) : base(value, Comparator.And) | ||
{ | ||
} | ||
|
||
public override bool ShouldTrigger(State state) | ||
{ | ||
return Value.All(t => t.ShouldTrigger(state)); | ||
} | ||
|
||
protected override HashSet<Comparator> AllowedComparators { get; } = new(Enum.GetValues<Comparator>()); | ||
} |
Oops, something went wrong.