EmmyLuaBuilder

Undocumented in source.

Members

Functions

addArray
void addArray(string table, string name, string description)
Undocumented in source. Be warned that the author may not have intended to support it.
addTable
void addTable(string table, string name, string description)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

static struct S
{
    LuaNumber a;
    LuaValue b;
    string c;
}

EmmyLuaBuilder b;
b.addArray!LuaNumber(null, "globalTable", "Some description");
b.addArray!LuaValue("t1", "field", "Some field");
b.addArray!string("t2.t", "field");
b.addTable!(string, LuaValue)(null, "map");
b.addArray!S(null, "s");
b.addFunction!(
    (string _, LuaValue __, S ____)
    {
        return 200;
    }
)(null, "test", "icles");
alias f = LuaTable.makeNew;
b.addFunction!f(null, "readText");
b.addFunctions!(
    "writeln", (string[] s) {},
    "readln", () { return ""; }
)("sh");

// writeln(b.toString());

Meta