Hi! I am trying to use this (in addition to roblox-hx) to prototype an idea of mine and I wanted to include some native lua code. I would prefer to not inline it (i.e. use untyped __lua__) and instead have my code in an extern module, however that doesn't seem to be supported in reflaxe.lua.
Is there something I'm missing or is this feature simply not yet implemented? And if it is not yet implemented, is there any barrier to doing so?
Example code:
package papercraft.target.ui;
@:luaRequire("@game/ReplicatedStorage/papercraft/native/NativeContainer")
extern class NativeContainer {
public static function make():Void;
}
Generated .lua file:
local Test = {};
local importPkg, registerPkg = unpack(require(game:GetService("ReplicatedStorage"):WaitForChild("HxPkgWrapper")));
registerPkg("papercraft.ui.Test", {Test});
setmetatable(Test, {
__tostring = function(self)
return "Class<Test>"
end;
})
Test.__index = Test
Test.__name__ = "Test"
Test.__fields__ = {"test"}
function Test.test()
NativeContainer.make()
end
return {Test}
Hi! I am trying to use this (in addition to roblox-hx) to prototype an idea of mine and I wanted to include some native lua code. I would prefer to not inline it (i.e. use untyped __lua__) and instead have my code in an extern module, however that doesn't seem to be supported in reflaxe.lua.
Is there something I'm missing or is this feature simply not yet implemented? And if it is not yet implemented, is there any barrier to doing so?
Example code:
Generated .lua file: