static int _g_get_IsString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsString); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new LitJson.JsonMockWrapper(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LitJson.JsonMockWrapper constructor!")); }
static int _m_GetString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetString( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); { string _val = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SetString(_val); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetJsonType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); { LitJson.JsonType _type; translator.Get(L, 2, out _type); gen_to_be_invoked.SetJsonType(_type); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ToJson(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LitJson.JsonMockWrapper gen_to_be_invoked = (LitJson.JsonMockWrapper)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { var gen_ret = gen_to_be_invoked.ToJson( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <LitJson.JsonWriter>(L, 2)) { LitJson.JsonWriter _writer = (LitJson.JsonWriter)translator.GetObject(L, 2, typeof(LitJson.JsonWriter)); gen_to_be_invoked.ToJson(_writer); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LitJson.JsonMockWrapper.ToJson!")); }