Most importly some easy way to add functions into lua for the user, ie in some similar way as dws2 does it:
Code:
Type TLuaVM = class
procedure registerMethod(Name: String; FunctionClass: class of TLuaFunction );
end;
Type TLuaInfo = class
Property Parameter[Name: String]: TVariant... default;
end;
Type TLuaFunction = class
procedure exec(Info: TLuaInfo);
end;
...
LuaVm.registerMethod('getPlayerX', TgetPlayerX);
Procedure TgetPlayerX.exec(Info: TLuaInfo);
begin
Info["Result"]:= Player.X;
end;
Or something in that range
Bookmarks