Questions tagged [luainterface]

LuaInterface is a library for integration between the Lua language and Microsoft .NET platform's Common Language Runtime (CLR).

LuaInterface is a library for integration between the Lua language and Microsoft .NET platform's Common Language Runtime (CLR). Lua scripts can use it to instantiate CLR objects, access properties, call methods, and even handle events with Lua functions.

95 questions
0
votes
1 answer

Luainterface, how to pass a whole class from a c# code?

I want to pass whole class from c# code to lua, so I can create in LUA a new object and use its methods, fields and so. When it's done, I'd like to know if it's possible to use objects in lua, which were created in a c# code and then passed somehow…
Patryk
  • 3,042
  • 11
  • 41
  • 83
0
votes
1 answer

Breakpoints ignored when filename > 60 chars

My lua source file have a filename > 60 chars (with needful non absolute path) When the debugger is running, LuaDebugger.cs performs a breakpoint check: breakpoint = GetBreakpoint(src, line); GetBreakpoint call GetFile() but it always returns null…
EnneKappa
  • 231
  • 1
  • 4
  • 13
0
votes
1 answer

LuaInterface: Access objects properties

i'm using LuaInterface to register a getter for some objects i want to have available in Lua. E.G: public MyObject getObjAt(int index) { return _myObjects[index]; } my Lua file: obj = getObjAt(3) print(obj.someProperty) //…
patchrail
  • 2,007
  • 1
  • 23
  • 33
-1
votes
1 answer

Convert a string to type "LuaFunction"

I'm using the LuaInterface in .net for a large project I'm working on. Is it possible to convert a string straight into a LuaFunction (similar to how LoadString() works?).
Freesnöw
  • 30,619
  • 30
  • 89
  • 138
-2
votes
1 answer

GetFunction returns null luainterface

I have this script loaded in my C# program function test() print ("A") end but when I try to invoke it LuaFunction func = lua.GetFunction("test") func.call() I get the problem that func is null. What do I wrong?
user507410
  • 512
  • 4
  • 12
1 2 3 4 5 6
7