forked from julianperrott/WowClassicGrindBot
-
-
Notifications
You must be signed in to change notification settings - Fork 143
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 #617 from Xian55/feature/improve-castinghandler-v4
Addon: [1.7.60] - Improved CastingHandler spell detection and wands
- Loading branch information
Showing
12 changed files
with
385 additions
and
127 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
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,25 @@ | ||
using System; | ||
|
||
namespace Core.Goals; | ||
|
||
public enum CastResult | ||
{ | ||
Success, | ||
CurrentActionNotDetected, | ||
UIFeedbackNotDetected, | ||
TokenInterrupted, | ||
UIError | ||
} | ||
|
||
public static class CastResult_Extension | ||
{ | ||
public static string ToStringF(this CastResult value) => value switch | ||
{ | ||
CastResult.Success => nameof(CastResult.Success), | ||
CastResult.CurrentActionNotDetected => nameof(CastResult.CurrentActionNotDetected), | ||
CastResult.UIFeedbackNotDetected => nameof(CastResult.UIFeedbackNotDetected), | ||
CastResult.TokenInterrupted => nameof(CastResult.TokenInterrupted), | ||
CastResult.UIError => nameof(CastResult.UIError), | ||
_ => throw new ArgumentNullException(nameof(value)), | ||
}; | ||
} |
Oops, something went wrong.