-
Notifications
You must be signed in to change notification settings - Fork 6
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
Ability to select Minetest API version #7
Comments
Finding deprecated and added core API methods (C++ exports only, not Lua side of core API): https://discord.com/channels/369122544273588224/749727888659447960/889649776377864252 Checkout tagged versions and grep Some things are simple and can be wired to Mineunit classes directly while other things require bit more complex parsing, for example https://github.com/minetest/minetest/blob/2628316842e9c3fc1c54c6d57505c7851fa83490/src/script/lua_api/l_playermeta.cpp#L108-L122 |
Partially implemented in #74 but only for engine Lua libraries, rest of it has to be implemented somehow. For example
Main definition introduces Player as globally available class, version specific stuff could be better if returning extension that can be merged into base. Similar should work fine for all current classes and function libraries. |
Add Minetest version parameter to configuration and when set use version specific Minetest core libraries.
Requires some easy way to track and update Minetest core libraries, possibly some script to fetch files from commit tagged by version.
Should probably still keep copies in mineunit repository and do updates to new version manually: execute script, resolve possible problems like moved/renamed libraries, commit new version libraries to mineunit repository.
Simplest would probably be putting libraries to subdirectories named after Minetest version.
Default Minetest version should probably be just static value in default configuration.
Related:
The text was updated successfully, but these errors were encountered: