-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #458 from FFXIV-CombatReborn/targettingstuff
Enhance target checks and add PriorityTargetHelper
- Loading branch information
Showing
3 changed files
with
63 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace RotationSolver.Basic.Helpers | ||
{ | ||
internal class PriorityTargetHelper | ||
{ | ||
// List of OIDs (DataId) | ||
private static readonly HashSet<uint> priorityOids = new HashSet<uint> | ||
{ | ||
0x415E, // Example OID | ||
// Add more OIDs here | ||
}; | ||
|
||
// Method to check if the given DataId is a priority target | ||
public static bool IsPriorityTarget(uint dataId) | ||
{ | ||
return priorityOids.Contains(dataId); | ||
} | ||
|
||
// Method to add a DataId to the priority list | ||
public static void AddPriorityTarget(uint dataId) | ||
{ | ||
if (!priorityOids.Contains(dataId)) | ||
{ | ||
priorityOids.Add(dataId); | ||
} | ||
} | ||
} | ||
} |