Skip to content

Rewrite/api#4

Merged
chariskar merged 8 commits into
masterfrom
rewrite/Api
May 25, 2026
Merged

Rewrite/api#4
chariskar merged 8 commits into
masterfrom
rewrite/Api

Conversation

@chariskar

Copy link
Copy Markdown
Member

Rewrite the api package of breakthemod to ease the development experience.

Major changes:

  • Migrate to a composition based design for Base* classes.
  • Introduce BaseWidget and WidgetConfig for widgets.
  • Change the design of BaseCommand and BaseModule so that name, description and usage suffix/hidden are set by constructor parameters instead of being values that get overriden.
  • Change NearbyHud to NearbyWidget and to use the new BaseWidget class.
  • Change the player cache to be a HashMap with the names of the users as strings.
  • Change the town and nation caches to only store the names.

@chariskar chariskar merged commit c2146a9 into master May 25, 2026
1 check passed
@chariskar chariskar self-assigned this May 25, 2026
@chariskar chariskar added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant