Skip to content

feat: allow for generic suggestions & add tooltips#529

Merged
Citymonstret merged 5 commits into2.0.0-devfrom
feature/2.0.0/generic-suggestions
Nov 30, 2023
Merged

feat: allow for generic suggestions & add tooltips#529
Citymonstret merged 5 commits into2.0.0-devfrom
feature/2.0.0/generic-suggestions

Conversation

@Citymonstret
Copy link
Copy Markdown
Member

This forces all suggestions to go through the suggestion factory (previously engine). This means that we do not have to pollute the entire codebase with yet another generic parameter (CommandManager is used in MANY places) that we generally do not need to care about.

The platforms can override the suggestion factory method and work with a sub-type of suggestion.

This is in preparation for tooltip support (see #66)

This forces all suggestions to go through the suggestion factory (previously engine). This means that we do not have to pollute the entire codebase with yet another generic parameter (CommandManager is used in MANY places) that we generally do not need to care about.

The platforms can override the suggestion factory method and work with a sub-type of suggestion.

This is in preparation for tooltip support (see #66)
@Citymonstret Citymonstret added this to the 2.0.0 milestone Nov 27, 2023
@Citymonstret Citymonstret self-assigned this Nov 27, 2023
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 27, 2023

Test Results

  69 files  ±0    69 suites  ±0   14s ⏱️ -5s
447 tests ±0  447 ✔️ ±0  0 💤 ±0  0 ±0 
459 runs  ±0  459 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 4f7ce3b. ± Comparison against base commit aa297bf.

♻️ This comment has been updated with latest results.

# Conflicts:
#	cloud-minecraft/cloud-brigadier/src/main/java/cloud/commandframework/brigadier/CloudBrigadierManager.java
@Citymonstret Citymonstret changed the title feat: allow for generic suggestions feat: allow for generic suggestions & add tooltips Nov 30, 2023
@Citymonstret Citymonstret merged commit b9b23bd into 2.0.0-dev Nov 30, 2023
@Citymonstret Citymonstret deleted the feature/2.0.0/generic-suggestions branch November 30, 2023 16:57
@Citymonstret Citymonstret mentioned this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant