static int _g_get_Value(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ProtoBuf.ProtoEnumAttribute gen_to_be_invoked = (ProtoBuf.ProtoEnumAttribute)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Value); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_Name(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ProtoBuf.ProtoEnumAttribute gen_to_be_invoked = (ProtoBuf.ProtoEnumAttribute)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { ProtoBuf.ProtoEnumAttribute gen_ret = new ProtoBuf.ProtoEnumAttribute(); 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.ProtoEnumAttribute constructor!")); }
static int _m_HasValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); ProtoBuf.ProtoEnumAttribute gen_to_be_invoked = (ProtoBuf.ProtoEnumAttribute)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.HasValue( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }