Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate old plugin functions, add replcements #2952

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Nov 1, 2023

fixes #2917

There's really no reason to force FlxG.plugins to have only one instance of any type, but we can't just change the functionality of this whole system, so for now I'm:

  • deprecating add and removeType
  • add addPlugin, which doesn't check existing types. addIfUniqueType which does. Also removeAllByType
  • changed some formatting, docs and args

@Geokureli Geokureli merged commit fe42dc0 into HaxeFlixel:dev Nov 16, 2023
11 of 16 checks passed
Geokureli added a commit that referenced this pull request Nov 21, 2023
@Geokureli Geokureli added this to the 5.6.0 milestone Jan 4, 2024
@Geokureli Geokureli deleted the plugin-duplicates branch January 5, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Ability to use multiple plugins of the same type.
1 participant