Skip to content

Conversation

Nathan93705
Copy link
Contributor

Introduces a TargetSelectorQuery enum and refactors the TargetEnum class to support more robust and extensible target selector parsing, including support for additional selector types, query keys, and improved error handling. The new implementation allows for more flexible and maintainable command target resolution.

Introduces a TargetSelectorQuery enum and refactors the TargetEnum class to support more robust and extensible target selector parsing, including support for additional selector types, query keys, and improved error handling. The new implementation allows for more flexible and maintainable command target resolution.
Removed the TargetSelectorQuery enum and replaced its usage with string literals for selector queries. Extracted repeated distance calculation logic into a new static method, calculateDistance, in TargetEnum for improved code reuse and readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant