public static LuaTable CreateTable() { LuaTable @string = new LuaTable(); @string["format"] = new LuaInteropDelegate(format); return(@string); }
public static LuaTable CreateTable() { LuaTable io = new LuaTable(); io["read"] = new LuaInteropDelegate(read); io["write"] = new LuaInteropDelegate(write); return(io); }
public static LuaTable CreateTable() { LuaTable coroutine = new LuaTable(); coroutine["create"] = new LuaInteropDelegateFunc <LuaFunction, LuaThread>(create); coroutine["resume"] = new LuaInteropDelegate(resume); coroutine["running"] = new LuaInteropDelegateFunc <LuaThread>(running); coroutine["status"] = new LuaInteropDelegateFunc <LuaThread, string>(status); coroutine["wrap"] = new LuaInteropDelegateFunc <LuaFunction, LuaValue>(wrap); coroutine["yield"] = new Yield(); return(coroutine); }
public static LuaTable CreateTable() { LuaTable basic = new LuaTable(); basic["getfenv"] = new LuaInteropDelegateFunc <LuaValue, LuaTable>(getfenv); basic["print"] = new LuaInteropDelegate(print); basic["setmetatable"] = new LuaInteropDelegateFunc <LuaTable, LuaTable, LuaTable>(setmetatable); basic["tonumber"] = new LuaInteropDelegateFunc <LuaValue, LuaValue, LuaValue>(tonumber); basic["tostring"] = new LuaInteropDelegateFunc <LuaValue, string>(tostring); basic["type"] = new LuaInteropDelegateFunc <LuaValue, string>(type); return(basic); }