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 drawing ui etc without tests.
- Loading branch information
1 parent
df13743
commit a2db516
Showing
13 changed files
with
509 additions
and
248 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
20 changes: 13 additions & 7 deletions
20
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
public class ObjectGetter | ||
using Dalamud.Game.ClientState.Objects.SubKinds; | ||
|
||
namespace RotationSolver.Basic.Configuration.Timeline.TimelineCondition; | ||
|
||
internal class ObjectGetter | ||
{ | ||
public bool IsPlayer { get; set; } = false; | ||
public uint DataID { get; set; } = 0; | ||
public JobRole Role { get; set; } = JobRole.None; | ||
public bool CanGet(GameObject obj) | ||
{ | ||
return true; | ||
} | ||
if (IsPlayer && obj is not PlayerCharacter) return false; | ||
|
||
public GameObject[] TargetGetter(GameObject obj) | ||
{ | ||
return []; | ||
if (DataID != 0 && obj.DataId != DataID) return false; | ||
|
||
if (Role != JobRole.None && !obj.IsJobCategory(Role)) return false; | ||
return 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
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
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
Oops, something went wrong.