From 600285f554ecbbf675c8bf0148b77731970716ef Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 09 七月 2019 18:07:50 +0800
Subject: [PATCH] 7930 【前端】【主干】骑宠觉醒功能
---
Lua/Gen/MountModelWrap.cs | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/Lua/Gen/MountModelWrap.cs b/Lua/Gen/MountModelWrap.cs
index e30db9b..23740a4 100644
--- a/Lua/Gen/MountModelWrap.cs
+++ b/Lua/Gen/MountModelWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(MountModel);
- Utils.BeginObjectRegister(type, L, translator, 0, 21, 17, 15);
+ Utils.BeginObjectRegister(type, L, translator, 0, 22, 17, 15);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
@@ -43,6 +43,7 @@
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSkillUnlock", _m_IsSkillUnlock);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillUnlockLevel", _m_GetSkillUnlockLevel);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHorseMaxLevel", _m_IsHorseMaxLevel);
+ Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHorseUnlock", _m_IsHorseUnlock);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onHorseInfoUpdate", _e_onHorseInfoUpdate);
@@ -736,6 +737,35 @@
}
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _m_IsHorseUnlock(RealStatePtr L)
+ {
+ try {
+
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+
+ MountModel gen_to_be_invoked = (MountModel)translator.FastGetCSObj(L, 1);
+
+
+
+ {
+ int _horseId = LuaAPI.xlua_tointeger(L, 2);
+
+ bool gen_ret = gen_to_be_invoked.IsHorseUnlock( _horseId );
+ LuaAPI.lua_pushboolean(L, gen_ret);
+
+
+
+ return 1;
+ }
+
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+
+ }
+
--
Gitblit v1.8.0