如何在 Android 项目中调用 Lua 代码?

我想将这个开源项目(https://github.com/PathOfBuildingCommunity/PathOfBuilding),即 Path of Exile 的构建计算器端口到 Android 应用程序中。该项目名为 Path of Building(PoB),完全使用 Lua 编写,并发布为 Windows 应用程序。我不确定是否可能仅简单地包装其 Lua 代码并在活动中显示它,但由于该项目经常更新(与游戏一样,每三个月更新一次),我希望尽可能少地触及其代码,并希望只需在 Android 中设置即可。任何帮助或输入都将不胜感激。

原文链接 https://stackoverflow.com/questions/69585698

点赞
stackoverflow用户14299073
stackoverflow用户14299073

你可以使用一个叫做 luaj 的库在 Android 上运行 Lua 代码。

请访问 luaj 网站查看详细使用方法: http://www.luaj.org/luaj/3.0/README.html

2021-10-15 13:49:46