AshitaXI / Ashita

Issue tracker and wiki for the Ashita project.
https://ashitaxi.com/
6 stars 1 forks source link

Expose Ashita Interface Version To Addons #51

Closed atom0s closed 10 months ago

atom0s commented 10 months ago

Feature Description

A feature request that has been made is to add/expose the current Ashita interface version number to addons. This allows addons to test/check for expected functionality and warn users they may need to upgrade their version of Ashita in order to use a given addon.

To avoid pollution of the global namespace, an idea on how this could be added is to include it within the existing ashita table. Such as the following:

print(ashita.interface_version);

In this case, interface_version is a Lua number value, matching its double value from the Ashita.h header.

Some positives about implementing things this way:

atom0s commented 10 months ago

This is now added and will be in the next update.

-- number
ashita.interface_version