13 Commits

Author SHA1 Message Date
hartie95
e91283cbca [Dependencies] Update kotlin and gradle version
* kotlin (1.9.22 -> 2.1.0)
* gradle (8.7 -> 8.10.2)
2024-12-27 20:59:01 +01:00
hartie95
457378f83c [Fix] Fix LuaName being ignored for fields passed to the Lua engine
* Also added a test to verfiy it working and updated some other tests
* Improved LuaValue support for values returned from lua function calls
2024-04-05 01:50:56 +02:00
hartie95
4eb2f17797 [Fix] Fix string key conversion for jnlua tables 2024-04-02 08:28:33 +02:00
hartie95
5419d4ff05 [Fix] Fixed some problems with JNLuas Table wrapper and its conversion back to lua 2024-04-02 07:33:09 +02:00
hartie95
c340c416c2 [Fix] Some parameter handling fixes for LuaJ, jnlua still has some problems there 2024-02-25 21:08:03 +01:00
hartie95
62c72e24e0 [Build] Update native targets to target specific native targets instead of basing it of the host
* For now this includes windows x64, linux x64 and linux arm64
2024-02-19 18:59:17 +01:00
hartie95
0a9cdd9bc9 [Fix] Multiple fixes and some hacked together simple lua engine tests
* Fixed reader usage in JNLuaSCript
* Fixed gargabes lua name used in SceneGroup.java
* Added a simple for now hacked together parsing test to allow noticing regressions in the parser easier
* Added simple enum parsing
* First experiments with kotlins expected and actuall keywords to have less dependencies to the jvm
2024-02-05 23:37:47 +01:00
hartie95
21b161f62b [Refactoring/Fix] Some fixes and refactorings
* Fixed set parsing
* Added a way to work around lua require differences between the lua standard and the game scripts usage
* Added some more ScriptLibDefinitions
* Started moving to kotlinx.io where possible
2024-02-02 13:54:29 +01:00
hartie95
6c013a7557 [Refactoring] Moved library version management to libs.versions.toml file 2024-01-30 13:40:39 +01:00
hartie95
d41ac53643 [Refactoring] Added support to identify lua field names during deserialisation via @LuaNames annotation
* Also applied LuaNames to the model fields that didn't match the java/kotlin nameing conventions
2024-01-21 19:37:19 +01:00
hartie95
85339662a7 [Refactoring] Some more small cleanups in the LuaContext classes and scriptLibHandlers 2024-01-10 21:46:31 +01:00
hartie95
4daa7f98a4 [Refactoring] Refactored ScriptLoader handling to make it more flexible 2024-01-08 21:01:44 +01:00
hartie95
44caa6d85d [Refactoring] Made BaseLua multiplatform, renamed it to base and moved some annotations to the core repo
* Added LuaStatic annotation to allow auto loading of lua enums/models
* Added LuaNames annotation handling to allow alternate names in lua
* Moved some more Scriptlib handlers into its own model
* First draft of activity group handling
* Moved some engine classes to kotlin
2024-01-08 01:22:10 +01:00