This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a lot of ui for raidboss drawing.
- Loading branch information
1 parent
a2db516
commit 673dd83
Showing
10 changed files
with
213 additions
and
45 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/ITimelineCondition.cs
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,5 +1,5 @@ | ||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
public interface ITimelineCondition | ||
internal interface ITimelineCondition | ||
{ | ||
bool IsTrue(); | ||
bool IsTrue(TimelineItem item); | ||
} |
13 changes: 10 additions & 3 deletions
13
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/ITimelineConditionConverter.cs
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
5 changes: 3 additions & 2 deletions
5
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/ObjectGetter.cs
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
10 changes: 10 additions & 0 deletions
10
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/TimelineConditionAction.cs
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,10 @@ | ||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
internal class TimelineConditionAction : ITimelineCondition | ||
{ | ||
public uint ActionID { get; set; } | ||
public bool IsTrue(TimelineItem item) | ||
{ | ||
if (ActionID == 0) return true; | ||
return ActionID == item.LastActionID; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/TimelineConditionSet.cs
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,21 @@ | ||
using RotationSolver.Basic.Configuration.Conditions; | ||
|
||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
|
||
internal class TimelineConditionSet : ITimelineCondition | ||
{ | ||
public List<ITimelineCondition> Conditions { get; set; } = []; | ||
|
||
public LogicalType Type; | ||
public bool IsTrue(TimelineItem item) | ||
{ | ||
if (Conditions.Count == 0) return false; | ||
|
||
return Type switch | ||
{ | ||
LogicalType.And => Conditions.All(c => c.IsTrue(item)), | ||
LogicalType.Or => Conditions.Any(c => c.IsTrue(item)), | ||
_ => false, | ||
}; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...tionSolver.Basic/Configuration/Timeline/TimelineCondition/TimelineConditionTargetCount.cs
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,12 @@ | ||
using ECommons.DalamudServices; | ||
|
||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
internal class TimelineConditionTargetCount : ITimelineCondition | ||
{ | ||
public int Count { get; set; } | ||
public ObjectGetter Getter { get; set; } = new(); | ||
public bool IsTrue(TimelineItem item) | ||
{ | ||
return Svc.Objects.Count(Getter.CanGet) >= Count; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
RotationSolver.Basic/Configuration/Timeline/TimelineCondition/TrueTimelineCondition.cs
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,6 +1,6 @@ | ||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
|
||
public class TrueTimelineCondition : ITimelineCondition | ||
internal class TrueTimelineCondition : ITimelineCondition | ||
{ | ||
public bool IsTrue() => true; | ||
public bool IsTrue(TimelineItem item) => true; | ||
} |
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
Oops, something went wrong.