KelvinShadewing / brux-gdk

Free runtime and development kit using SDL and Squirrel
GNU Affero General Public License v3.0
40 stars 20 forks source link

Implement `simplesquirrel` library to replace Miniswig wrapper generation #71

Closed Vankata453 closed 4 months ago

Vankata453 commented 4 months ago

The simplesquirrel library is a simple binding to Squirrel in C++11. The maintained SuperTux fork of it has been implemented.

It allows Brux to easily bind its API functions, each with a single line of code, removing the need for wrapper generation and the various inconveniences around it - everything is done from the code in "src/brux". Since there is no longer any wrapper generation, the "src/api" and "src/squirrel" directories have been deleted.

Additionally, simplesquirrel also provides handy wrappers across all types of Squirrel objects and a lot of general functions, which have been utilized in some places here.

Please test thoroughly!

Closes #66.