static int SendMessage(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); JsonLuaHelper.SendMessage(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Dict2Json(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); object arg0 = ToLua.ToVarObject(L, 1); string o = JsonLuaHelper.Dict2Json(arg0); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Json2Dict(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); System.Collections.Generic.Dictionary <string, object> o = JsonLuaHelper.Json2Dict(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateJsonLuaHelper(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { JsonLuaHelper obj = new JsonLuaHelper(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: JsonLuaHelper.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }