Predefined Plugin RequiredApiVersion#370
Predefined Plugin RequiredApiVersion#370tayjay wants to merge 4 commits intonorthwood-studios:masterfrom
Conversation
…s.CompiledVersion`.
…ault-labapi-version
|
Unfortunately, this change is not viable. At the moment, |
despite making it virtual it's a good idea |
@louis1706 Could you rephrase this? |
Making it virtual is a good idea :3 |
What would the default value be then? |
|
|

Small change for consideration.
Usually a plugin is made for the LabAPI version it's built with. This can be found in the LabAPI plugin example as well https://github.com/northwood-studios/LabAPI/wiki/Writing-Your-First-Plugin.
Proposed change is to set the
Plugin#RequiredApiVersionusingLabApiProperties.CompiledVersionin the base class and change the member fromabstracttovirtual. This will still allow developers to change the version if they prefer, but will not be a required override.It's 1 less boilerplate step for making new plugins.