perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
629 stars 44 forks source link

PluginScript #21

Closed ShalokShalom closed 4 years ago

ShalokShalom commented 4 years ago

Hi

Luascript is implemented in Plugin Script, or how do you manage compatibility with the code editor,?

perbone commented 4 years ago

LuaScript is a module, and it's compatible based on Godot release version. So the editor compatibility is based on the respective API.

ShalokShalom commented 4 years ago

Sorry, I ask only if you use PluginScript to provide editor functionality, like Python does?

perbone commented 4 years ago

As I said it uses the module API and the editor functionality comes if it.

ShalokShalom commented 4 years ago

Thanks a lot

perbone commented 4 years ago

Just to clarify, there is no 'module' API, what I meant is that the implementation uses the facilities of Godot modules and that in terms of API, LuaScript uses the API Script, which is basically composed of three main classes, Script, ScriptLanguage and ScriptInstance. I hope this helps you understand the code. -- Perbone