static int _g_get_MemberName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ProtoBuf.ProtoPartialMemberAttribute gen_to_be_invoked = (ProtoBuf.ProtoPartialMemberAttribute)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.MemberName); } 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) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { int _tag = LuaAPI.xlua_tointeger(L, 2); string _memberName = LuaAPI.lua_tostring(L, 3); ProtoBuf.ProtoPartialMemberAttribute gen_ret = new ProtoBuf.ProtoPartialMemberAttribute(_tag, _memberName); 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 ProtoBuf.ProtoPartialMemberAttribute constructor!")); }