Skip to content

Add default implementation to some of the modifiers virtual functions#2812

Merged
IntegratedQuantum merged 5 commits intoPixelGuys:masterfrom
Argmaster:modifier-vtable-defaults
Apr 11, 2026
Merged

Add default implementation to some of the modifiers virtual functions#2812
IntegratedQuantum merged 5 commits intoPixelGuys:masterfrom
Argmaster:modifier-vtable-defaults

Conversation

@Argmaster
Copy link
Copy Markdown
Collaborator

@Argmaster Argmaster commented Apr 4, 2026

I am looking to add a callback hook (possibly even few in long term) to the modifier vtable and it gets impractical to define all of them every time, so in this pull request I am proposing to add default implementations for some of the callbacks so we need less boilerplate:

  • changeToolParameters
  • changeBlockDamage

Comment thread src/items.zig
@Argmaster Argmaster marked this pull request as ready for review April 4, 2026 12:25
@Argmaster Argmaster moved this to Easy to Review in PRs to review Apr 4, 2026
@IntegratedQuantum
Copy link
Copy Markdown
Member

Please fix merge conflicts

@IntegratedQuantum IntegratedQuantum merged commit 457bd1d into PixelGuys:master Apr 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants