public static LuaTable CreateTable() { LuaTable math = new LuaTable(); math["abs"] = new LuaInteropDelegateFunc <double, double>(Math.Abs); return(math); }
public static LuaTable CreateTable() { LuaTable os = new LuaTable(); os["clock"] = new LuaInteropDelegateFunc <double>(clock); os["getenv"] = new LuaInteropDelegateFunc <string, string>(getenv); return(os); }
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); }