Skip to content

LuaTable instance is passed to Methods #4

Open
@nrother

Description

@nrother

When a C#-Method is called with a table as a parameter, a instance of LuaTable is passed not a instance of DynamicLuaTable.
Currently there is no idea how to change this, the only solution would be a wrapper Method, wrapping the in the correct classes.

This would be a workarround, but it requires a reference to the orignal LuaInterface Assembly:

lua.func3 = new Action<dynamic>((table) =>
{
       table = new DynamicLuaTable(table, lua.LuaInterpreter);
       Console.WriteLine(table.num);
});
lua("func3({num = 42})");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions