7539 子 【开发】【2.0.100】增加自由设置技能释放顺序 / 【前端】【2.0.100】增加自由设置技能释放顺序
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(CTGConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RecordID", _g_get_RecordID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Title", _g_get_Title); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TotalBuyCount", _g_get_TotalBuyCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "DailyBuyCount", _g_get_DailyBuyCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GainGold", _g_get_GainGold); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GainGoldPaper", _g_get_GainGoldPaper); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_TotalBuyCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | CTGConfig gen_to_be_invoked = (CTGConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TotalBuyCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_DailyBuyCount(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | #endif |
| | | } |
| | | |
| | | public ulong __Gen_Delegate_Imp213(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | ulong __gen_ret = LuaAPI.lua_touint64(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp214(object p0, int p1, out Snxxz.UI.JadeDynastyBossCondition p2) |
| | | public bool __Gen_Delegate_Imp213(object p0, int p1, out Snxxz.UI.JadeDynastyBossCondition p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp215(object p0, int p1, out Snxxz.UI.JadeDynastyBossLine p2) |
| | | public bool __Gen_Delegate_Imp214(object p0, int p1, out Snxxz.UI.JadeDynastyBossLine p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp216(Snxxz.UI.JadeDynastyBossData p0, Snxxz.UI.JadeDynastyBossData p1) |
| | | public int __Gen_Delegate_Imp215(Snxxz.UI.JadeDynastyBossData p0, Snxxz.UI.JadeDynastyBossData p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp217(object p0, Snxxz.UI.Item p1) |
| | | public bool __Gen_Delegate_Imp216(object p0, Snxxz.UI.Item p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp218(object p0, Snxxz.UI.FindPreciousModel.BossKillRecord p1, Snxxz.UI.FindPreciousModel.BossKillRecord p2) |
| | | public int __Gen_Delegate_Imp217(object p0, Snxxz.UI.FindPreciousModel.BossKillRecord p1, Snxxz.UI.FindPreciousModel.BossKillRecord p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.JadeDynastySkillModel __Gen_Delegate_Imp219(object p0) |
| | | public Snxxz.UI.JadeDynastySkillModel __Gen_Delegate_Imp218(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Transform __Gen_Delegate_Imp220(object p0) |
| | | public UnityEngine.Transform __Gen_Delegate_Imp219(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.JadeDynastySkillState __Gen_Delegate_Imp221(object p0, int p1) |
| | | public Snxxz.UI.JadeDynastySkillState __Gen_Delegate_Imp220(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp222(object p0, int p1, out Snxxz.UI.JadeDynastySkillCondition p2) |
| | | public bool __Gen_Delegate_Imp221(object p0, int p1, out Snxxz.UI.JadeDynastySkillCondition p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp223(object p0, int p1, out UnityEngine.Sprite[] p2) |
| | | public bool __Gen_Delegate_Imp222(object p0, int p1, out UnityEngine.Sprite[] p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp224(object p0, Snxxz.UI.ActivateShow.ActivateFunc p1, int p2) |
| | | public void __Gen_Delegate_Imp223(object p0, Snxxz.UI.ActivateShow.ActivateFunc p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp225(object p0, Snxxz.UI.ActivateShow.ActivateFunc p1) |
| | | public void __Gen_Delegate_Imp224(object p0, Snxxz.UI.ActivateShow.ActivateFunc p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.KingTreasureModel __Gen_Delegate_Imp226(object p0) |
| | | public Snxxz.UI.KingTreasureModel __Gen_Delegate_Imp225(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public KingTreasureItemConfig __Gen_Delegate_Imp227(object p0) |
| | | public KingTreasureItemConfig __Gen_Delegate_Imp226(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.KingTreasureShowModel __Gen_Delegate_Imp228(object p0) |
| | | public Snxxz.UI.KingTreasureShowModel __Gen_Delegate_Imp227(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.CrossServerOneVsOne __Gen_Delegate_Imp229(object p0) |
| | | public Snxxz.UI.CrossServerOneVsOne __Gen_Delegate_Imp228(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp230(object p0, Snxxz.UI.CrossServerOneVsOne p1) |
| | | public void __Gen_Delegate_Imp229(object p0, Snxxz.UI.CrossServerOneVsOne p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.LoginModel __Gen_Delegate_Imp231(object p0) |
| | | public Snxxz.UI.LoginModel __Gen_Delegate_Imp230(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp232(object p0, object p1, object p2, int p3, bool p4) |
| | | public void __Gen_Delegate_Imp231(object p0, object p1, object p2, int p3, bool p4) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp233(object p0, byte p1) |
| | | public void __Gen_Delegate_Imp232(object p0, byte p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TaskModel __Gen_Delegate_Imp234(object p0) |
| | | public TaskModel __Gen_Delegate_Imp233(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ReikiRootModel __Gen_Delegate_Imp235(object p0) |
| | | public Snxxz.UI.ReikiRootModel __Gen_Delegate_Imp234(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp236(object p0, TreasureCategory p1) |
| | | public void __Gen_Delegate_Imp235(object p0, TreasureCategory p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp237(object p0, int p1, int p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp236(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public PlayerDeadModel __Gen_Delegate_Imp238(object p0) |
| | | public PlayerDeadModel __Gen_Delegate_Imp237(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.LuckyTreasureModel __Gen_Delegate_Imp239(object p0) |
| | | public Snxxz.UI.LuckyTreasureModel __Gen_Delegate_Imp238(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public LoginRewardModel __Gen_Delegate_Imp240(object p0) |
| | | public LoginRewardModel __Gen_Delegate_Imp239(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp241(object p0, int p1) |
| | | public string __Gen_Delegate_Imp240(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FestivalRedpackModel __Gen_Delegate_Imp242(object p0) |
| | | public Snxxz.UI.FestivalRedpackModel __Gen_Delegate_Imp241(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp243(object p0) |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp242(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RedEnvelopeModel __Gen_Delegate_Imp244(object p0) |
| | | public Snxxz.UI.RedEnvelopeModel __Gen_Delegate_Imp243(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.DateTime __Gen_Delegate_Imp245(object p0, object p1) |
| | | public System.DateTime __Gen_Delegate_Imp244(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp246(object p0, object p1, int p2) |
| | | public bool __Gen_Delegate_Imp245(object p0, object p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp247(object p0, int p1, out Snxxz.UI.FestivalRedpack p2) |
| | | public bool __Gen_Delegate_Imp246(object p0, int p1, out Snxxz.UI.FestivalRedpack p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp248(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.FestivalRedpackAchievement> p2) |
| | | public bool __Gen_Delegate_Imp247(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.FestivalRedpackAchievement> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp249(object p0, Snxxz.UI.Operation p1, int p2) |
| | | public void __Gen_Delegate_Imp248(object p0, Snxxz.UI.Operation p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp250(object p0) |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp249(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp251(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | public void __Gen_Delegate_Imp250(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public OpenServiceAchievementModel __Gen_Delegate_Imp252(object p0) |
| | | public OpenServiceAchievementModel __Gen_Delegate_Imp251(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OperationLuckyTreasure __Gen_Delegate_Imp253(object p0) |
| | | public Snxxz.UI.OperationLuckyTreasure __Gen_Delegate_Imp252(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp254(object p0, Snxxz.UI.Operation p1) |
| | | public void __Gen_Delegate_Imp253(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OperationLuckyTreasure.LuckyTreasureItem __Gen_Delegate_Imp255(object p0) |
| | | public Snxxz.UI.OperationLuckyTreasure.LuckyTreasureItem __Gen_Delegate_Imp254(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp256(object p0) |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp255(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp257(object p0) |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp256(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp258(object p0) |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp257(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp259(object p0) |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp258(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp260(object p0) |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp259(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MonthWeekInvestModel __Gen_Delegate_Imp261(object p0) |
| | | public Snxxz.UI.MonthWeekInvestModel __Gen_Delegate_Imp260(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp262(object p0) |
| | | public Snxxz.UI.VipModel __Gen_Delegate_Imp261(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | |
| | | |
| | | Snxxz.UI.VipModel __gen_ret = (Snxxz.UI.VipModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.VipModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SuperValueGiftBehaviour __Gen_Delegate_Imp262(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.xlua_pushinteger(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.SuperValueGiftBehaviour __gen_ret = (Snxxz.UI.SuperValueGiftBehaviour)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.SuperValueGiftBehaviour)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ActivateShow.ActivateFunc __Gen_Delegate_Imp265() |
| | | public Snxxz.UI.PetModel __Gen_Delegate_Imp265(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.PetModel __gen_ret = (Snxxz.UI.PetModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.PetModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ActivateShow.ActivateFunc __Gen_Delegate_Imp266() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp266(Snxxz.UI.ActivateShow.ActivateFunc p0) |
| | | public void __Gen_Delegate_Imp267(Snxxz.UI.ActivateShow.ActivateFunc p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp267() |
| | | public string __Gen_Delegate_Imp268() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp268(int p0, int p1, int p2) |
| | | public void __Gen_Delegate_Imp269(int p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp269(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.RidingPetBossReward> p2) |
| | | public bool __Gen_Delegate_Imp270(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.RidingPetBossReward> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RidingPetBossModel __Gen_Delegate_Imp270(object p0) |
| | | public Snxxz.UI.RidingPetBossModel __Gen_Delegate_Imp271(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp271() |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp272() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp272(uint p0, out System.Collections.Generic.Dictionary<int, int> p1) |
| | | public bool __Gen_Delegate_Imp273(uint p0, out System.Collections.Generic.Dictionary<int, int> p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp273(uint p0, int p1, out int p2) |
| | | public bool __Gen_Delegate_Imp274(uint p0, int p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp274(Snxxz.UI.EquipShowSwitch.EquipShowSwitchType p0, uint p1) |
| | | public bool __Gen_Delegate_Imp275(Snxxz.UI.EquipShowSwitch.EquipShowSwitchType p0, uint p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp275(uint p0) |
| | | public void __Gen_Delegate_Imp276(uint p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp276(object p0) |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp277(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int[] __Gen_Delegate_Imp277(object p0) |
| | | public int[] __Gen_Delegate_Imp278(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int[] __Gen_Delegate_Imp278(object p0, int p1) |
| | | public int[] __Gen_Delegate_Imp279(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp279(object p0, int p1) |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp280(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp280(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | public bool __Gen_Delegate_Imp281(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp281(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | public bool __Gen_Delegate_Imp282(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp282(object p0, int p1) |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp283(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp283(object p0, object p1, object p2) |
| | | public void __Gen_Delegate_Imp284(object p0, object p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp284(object p0, int p1, out int p2, out int p3) |
| | | public bool __Gen_Delegate_Imp285(object p0, int p1, out int p2, out int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp285(object p0, int p1, int p2) |
| | | public string __Gen_Delegate_Imp286(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp286(object p0, TextColType p1, bool p2) |
| | | public void __Gen_Delegate_Imp287(object p0, TextColType p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public uint __Gen_Delegate_Imp287(object p0) |
| | | public uint __Gen_Delegate_Imp288(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp288(object p0, uint p1) |
| | | public void __Gen_Delegate_Imp289(object p0, uint p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp289(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | public bool __Gen_Delegate_Imp290(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp290(object p0, int p1, out Snxxz.UI.RuneHoleCondition p2) |
| | | public bool __Gen_Delegate_Imp291(object p0, int p1, out Snxxz.UI.RuneHoleCondition p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp291(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | public int __Gen_Delegate_Imp292(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp292(object p0, int p1, out Snxxz.UI.RuneModel.RuneHoleRedpoint p2) |
| | | public bool __Gen_Delegate_Imp293(object p0, int p1, out Snxxz.UI.RuneModel.RuneHoleRedpoint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp293(object p0, int p1, float p2) |
| | | public int __Gen_Delegate_Imp294(object p0, int p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp294(object p0, int p1, uint p2) |
| | | public bool __Gen_Delegate_Imp295(object p0, int p1, uint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneResolveModel __Gen_Delegate_Imp295(object p0) |
| | | public Snxxz.UI.RuneResolveModel __Gen_Delegate_Imp296(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneModel __Gen_Delegate_Imp296(object p0) |
| | | public Snxxz.UI.RuneModel __Gen_Delegate_Imp297(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp297(object p0, int p1, int p2, bool p3) |
| | | public float __Gen_Delegate_Imp298(object p0, int p1, int p2, bool p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp298(object p0, int p1) |
| | | public float __Gen_Delegate_Imp299(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp299(object p0, int p1, out Snxxz.UI.TreasureSkill p2) |
| | | public bool __Gen_Delegate_Imp300(object p0, int p1, out Snxxz.UI.TreasureSkill p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp300(object p0, int p1, out Snxxz.UI.TreasurePotential p2) |
| | | public bool __Gen_Delegate_Imp301(object p0, int p1, out Snxxz.UI.TreasurePotential p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TreasureSkillModel __Gen_Delegate_Imp301(object p0) |
| | | public Snxxz.UI.TreasureSkillModel __Gen_Delegate_Imp302(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SkillModel __Gen_Delegate_Imp302(object p0) |
| | | public Snxxz.UI.SkillModel __Gen_Delegate_Imp303(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp303(object p0) |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp304(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp304(object p0) |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp305(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp305(object p0) |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp306(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp306(object p0) |
| | | public UIEffect __Gen_Delegate_Imp307(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __Gen_Delegate_Imp307(object p0) |
| | | public Treasure3DConfig __Gen_Delegate_Imp308(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp308(object p0, UnityEngine.Vector3 p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp309(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp309(object p0) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp310(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp310(object p0) |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp311(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp311() |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp312() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TreasureCategory __Gen_Delegate_Imp312(object p0) |
| | | public TreasureCategory __Gen_Delegate_Imp313(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp313(object p0, bool p1, TreasureCategory p2) |
| | | public void __Gen_Delegate_Imp314(object p0, bool p1, TreasureCategory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp314(object p0, TreasureCategory p1, object p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp315(object p0, TreasureCategory p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp315(object p0, TreasureCategory p1, bool p2) |
| | | public void __Gen_Delegate_Imp316(object p0, TreasureCategory p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp316(object p0, int p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp317(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp317(object p0, object p1, float p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp318(object p0, object p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp318(object p0) |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp319(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class DemonJarConfigWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(DemonJarConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 17, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "NPCID", _g_get_NPCID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LineID", _g_get_LineID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Time", _g_get_Time); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MustItemID", _g_get_MustItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RareItemID", _g_get_RareItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "NewItemId", _g_get_NewItemId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PortraitID", _g_get_PortraitID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "SpecialItemMark", _g_get_SpecialItemMark); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanEnterTimes", _g_get_CanEnterTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AutoAttention", _g_get_AutoAttention); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "CancelAttentionAfterKill", _g_get_CancelAttentionAfterKill); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Job1", _g_get_Job1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Job2", _g_get_Job2); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Job3", _g_get_Job3); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "KillHurtMin", _g_get_KillHurtMin); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "KillHurtMax", _g_get_KillHurtMax); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RewardDescription", _g_get_RewardDescription); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Get", _m_Get_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValues", _m_GetValues_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Has", _m_Has_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inited", _g_get_inited); |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | DemonJarConfig gen_ret = new DemonJarConfig(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _input = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | DemonJarConfig gen_ret = new DemonJarConfig(_input); |
| | | 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 DemonJarConfig constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Get_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | DemonJarConfig gen_ret = DemonJarConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | DemonJarConfig gen_ret = DemonJarConfig.Get( _id ); |
| | | 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 DemonJarConfig.Get!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKeys_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<string> gen_ret = DemonJarConfig.GetKeys( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetValues_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<DemonJarConfig> gen_ret = DemonJarConfig.GetValues( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Has_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = DemonJarConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = DemonJarConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(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 DemonJarConfig.Has!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | bool _sync = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | DemonJarConfig.Init( _sync ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 0) |
| | | { |
| | | |
| | | DemonJarConfig.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to DemonJarConfig.Init!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_inited(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, DemonJarConfig.inited); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_NPCID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.NPCID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_LineID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LineID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Time(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Time); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_MustItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.MustItemID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_RareItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.RareItemID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_NewItemId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.NewItemId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_PortraitID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.PortraitID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_SpecialItemMark(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SpecialItemMark); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_CanEnterTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CanEnterTimes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AutoAttention(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AutoAttention); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_CancelAttentionAfterKill(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CancelAttentionAfterKill); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Job1(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.Job1); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Job2(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.Job2); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Job3(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.Job3); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_KillHurtMin(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.KillHurtMin); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_KillHurtMax(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.KillHurtMax); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_RewardDescription(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DemonJarConfig gen_to_be_invoked = (DemonJarConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.RewardDescription); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6d4d80b9be2133e4986f36070da50bf7 |
| | | timeCreated: 1561454710 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(DienstgradConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 12, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 13, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConfigParseCompleted", _m_OnConfigParseCompleted); |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skills", _g_get_Skills); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "gotoId", _g_get_gotoId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "missionId", _g_get_missionId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "order", _g_get_order); |
| | | |
| | | |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_order(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DienstgradConfig gen_to_be_invoked = (DienstgradConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.order); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | Utils.BeginObjectRegister(typeof(DailyQuestType), L, translator, 0, 0, 0, 0); |
| | | Utils.EndObjectRegister(typeof(DailyQuestType), L, translator, null, null, null, null, null); |
| | | |
| | | Utils.BeginClassRegister(typeof(DailyQuestType), L, null, 34, 0, 0); |
| | | Utils.BeginClassRegister(typeof(DailyQuestType), L, null, 37, 0, 0); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BountyMission", DailyQuestType.BountyMission); |
| | | |
| | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HazyRegion", DailyQuestType.HazyRegion); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SkyTower", DailyQuestType.SkyTower); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Auction", DailyQuestType.Auction); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "JadeDynastyBoss", DailyQuestType.JadeDynastyBoss); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CrossServerBoss", DailyQuestType.CrossServerBoss); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); |
| | | |
| | |
| | | { |
| | | translator.PushDailyQuestType(L, DailyQuestType.SkyTower); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "Auction")) |
| | | { |
| | | translator.PushDailyQuestType(L, DailyQuestType.Auction); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "JadeDynastyBoss")) |
| | | { |
| | | translator.PushDailyQuestType(L, DailyQuestType.JadeDynastyBoss); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "CrossServerBoss")) |
| | | { |
| | | translator.PushDailyQuestType(L, DailyQuestType.CrossServerBoss); |
| | | } |
| | | else |
| | | { |
| | | return LuaAPI.luaL_error(L, "invalid string for DailyQuestType!"); |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(JadeDynastyBossConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 0); |
| | | |
| | | |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RealmLV", _g_get_RealmLV); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ZhuXianScore", _g_get_ZhuXianScore); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dropItems", _g_get_dropItems); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "newDropId", _g_get_newDropId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "PortraitID", _g_get_PortraitID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "conditionSorts", _g_get_conditionSorts); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AutoAttention", _g_get_AutoAttention); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_newDropId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | JadeDynastyBossConfig gen_to_be_invoked = (JadeDynastyBossConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.newDropId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_PortraitID(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(JobSetupConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 24, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 25, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConfigParseCompleted", _m_OnConfigParseCompleted); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Job", _g_get_Job); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GainSkillList", _g_get_GainSkillList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MoveLimitDist", _g_get_MoveLimitDist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RollBreakSkillList", _g_get_RollBreakSkillList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExpertSkillEffect", _g_get_ExpertSkillEffect); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 7, 1, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Get", _m_Get_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValues", _m_GetValues_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Has", _m_Has_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetExpertSkillChangeEffect", _m_GetExpertSkillChangeEffect_xlua_st_); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to JobSetupConfig.Init!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnConfigParseCompleted(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | JobSetupConfig gen_to_be_invoked = (JobSetupConfig)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnConfigParseCompleted( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetExpertSkillChangeEffect_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _mainSkillID = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | int gen_ret = JobSetupConfig.GetExpertSkillChangeEffect( _mainSkillID ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ExpertSkillEffect(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | JobSetupConfig gen_to_be_invoked = (JobSetupConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.ExpertSkillEffect); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(LoadingBackGroundConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 8, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConfigParseCompleted", _m_OnConfigParseCompleted); |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineId", _g_get_lineId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "icons", _g_get_icons); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jobIntroduce1", _g_get_jobIntroduce1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jobIntroduce2", _g_get_jobIntroduce2); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelLimit", _g_get_levelLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "description", _g_get_description); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_jobIntroduce1(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LoadingBackGroundConfig gen_to_be_invoked = (LoadingBackGroundConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.jobIntroduce1); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_jobIntroduce2(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LoadingBackGroundConfig gen_to_be_invoked = (LoadingBackGroundConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.jobIntroduce2); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_levelLimit(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(QuickSetting); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 4, 1, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 5, 1, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetQuickSetting", _m_SetQuickSetting); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuickSetting", _m_GetQuickSetting); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuickSettingBool", _m_GetQuickSettingBool); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPackage", _m_SendPackage); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onQuickSettingUpdate", _e_onQuickSettingUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "quickSettingDic", _g_get_quickSettingDic); |
| | | |
| | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | string _value = LuaAPI.lua_tostring(L, 3); |
| | | int _index = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | gen_to_be_invoked.SetQuickSetting( _type, _value, _index ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 4&& translator.Assignable<QuickSetting.QuickSettingType>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | QuickSetting.QuickSettingType _type;translator.Get(L, 2, out _type); |
| | |
| | | QuickSetting gen_to_be_invoked = (QuickSetting)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _index = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetQuickSetting( _type, _index ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<QuickSetting.QuickSettingType>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | QuickSetting.QuickSettingType _type;translator.Get(L, 2, out _type); |
| | | int _index = LuaAPI.xlua_tointeger(L, 3); |
| | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to QuickSetting.GetQuickSetting!"); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onQuickSettingUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | QuickSetting gen_to_be_invoked = (QuickSetting)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.onQuickSettingUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onQuickSettingUpdate -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to QuickSetting.onQuickSettingUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SDKUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 29, 20); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 28, 29, 20); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InstallAPK", _m_InstallAPK); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformCheckIDAuthentication", _m_FreePlatformCheckIDAuthentication); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnServerChargeOk", _m_OnServerChargeOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRegistEvent", _m_SendRegistEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendLoginEvent", _m_SendLoginEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateRoleOk", _m_CreateRoleOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RoleLogin", _m_RoleLogin); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RoleLevelUp", _m_RoleLevelUp); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendLoginEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SendLoginEvent( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CreateRoleOk(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SkillConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 74, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 75, 0); |
| | | |
| | | |
| | | |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectValue61", _g_get_EffectValue61); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectValue62", _g_get_EffectValue62); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectValue63", _g_get_EffectValue63); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastTime6", _g_get_LastTime6); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "StateSkillLV", _g_get_StateSkillLV); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LearnSkillReq", _g_get_LearnSkillReq); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LearnSkillLV", _g_get_LearnSkillLV); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_LastTime6(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SkillConfig gen_to_be_invoked = (SkillConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LastTime6); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_StateSkillLV(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SkillHelper); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExpertSkill", _m_GetExpertSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetExpertSkillEvByMainSkillID", _m_TryGetExpertSkillEvByMainSkillID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindSkill", _m_BindSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillID", _m_GetSkillID); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetExpertSkill(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _mainSkillId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | SkillHelper.SkillInfo gen_ret = gen_to_be_invoked.GetExpertSkill( _mainSkillId ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetExpertSkillEvByMainSkillID(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _mainSkillId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _evID = LuaAPI.xlua_tointeger(L, 3); |
| | | SkillHelper.EffectValue _ev; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetExpertSkillEvByMainSkillID( _mainSkillId, _evID, out _ev ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _ev); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.AlchemyModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 15, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 16, 5); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyNormalNotifySymbol", _g_get_alchemyNormalNotifySymbol); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyFairyNotifySymbol", _g_get_alchemyFairyNotifySymbol); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxBatchAlchemyCount", _g_get_maxBatchAlchemyCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalBatchAlchemyLevel", _g_get_normalBatchAlchemyLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isServerPrepare", _g_get_isServerPrepare); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyDrugRedpoint1", _g_get_alchemyDrugRedpoint1); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_normalBatchAlchemyLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.AlchemyModel gen_to_be_invoked = (Snxxz.UI.AlchemyModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.normalBatchAlchemyLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isServerPrepare(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 8, 24, 17); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 8, 25, 18); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowPopConfirm", _m_ShowPopConfirm_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowRealmPopConfirm", _m_ShowRealmPopConfirm_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ShowRuneTowerPopConfirm", _m_ShowRuneTowerPopConfirm_xlua_st_); |
| | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "generalTitle", _g_get_generalTitle); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "generalContent", _g_get_generalContent); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OnToggleConfirmEvent", _g_get_OnToggleConfirmEvent); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OnToggleSingleConfirmEvent", _g_get_OnToggleSingleConfirmEvent); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "iconTitle", _g_get_iconTitle); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "iconTopInfo", _g_get_iconTopInfo); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "iconBottomInfo", _g_get_iconBottomInfo); |
| | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "generalTitle", _s_set_generalTitle); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "generalContent", _s_set_generalContent); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "OnToggleConfirmEvent", _s_set_OnToggleConfirmEvent); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "OnToggleSingleConfirmEvent", _s_set_OnToggleSingleConfirmEvent); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "iconTitle", _s_set_iconTitle); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "iconTopInfo", _s_set_iconTopInfo); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "iconBottomInfo", _s_set_iconBottomInfo); |
| | |
| | | string _content = LuaAPI.lua_tostring(L, 2); |
| | | string _toggleTxt = LuaAPI.lua_tostring(L, 3); |
| | | System.Action<bool, bool> _func = translator.GetDelegate<System.Action<bool, bool>>(L, 4); |
| | | |
| | | Snxxz.UI.ConfirmCancel.ToggleConfirmCancel( _title, _content, _toggleTxt, _func ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action<bool>>(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) |
| | | { |
| | | string _title = LuaAPI.lua_tostring(L, 1); |
| | | string _content = LuaAPI.lua_tostring(L, 2); |
| | | string _toggleTxt = LuaAPI.lua_tostring(L, 3); |
| | | System.Action<bool> _func = translator.GetDelegate<System.Action<bool>>(L, 4); |
| | | bool __toggle = LuaAPI.lua_toboolean(L, 5); |
| | | |
| | | Snxxz.UI.ConfirmCancel.ToggleConfirmCancel( _title, _content, _toggleTxt, _func, __toggle ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action<bool>>(L, 4)) |
| | | { |
| | | string _title = LuaAPI.lua_tostring(L, 1); |
| | | string _content = LuaAPI.lua_tostring(L, 2); |
| | | string _toggleTxt = LuaAPI.lua_tostring(L, 3); |
| | | System.Action<bool> _func = translator.GetDelegate<System.Action<bool>>(L, 4); |
| | | |
| | | Snxxz.UI.ConfirmCancel.ToggleConfirmCancel( _title, _content, _toggleTxt, _func ); |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_OnToggleSingleConfirmEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, Snxxz.UI.ConfirmCancel.OnToggleSingleConfirmEvent); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_iconTitle(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_OnToggleSingleConfirmEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | Snxxz.UI.ConfirmCancel.OnToggleSingleConfirmEvent = translator.GetDelegate<System.Action<bool>>(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_iconTitle(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.DailyQuestModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 34, 10, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 10, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMapInitOk", _m_OnMapInitOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnNewFuncOpen", _m_OnNewFuncOpen); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNewDailyQuest", _m_IsNewDailyQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHasShowDailyQuest", _m_RemoveHasShowDailyQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDailyQuests", _m_GetDailyQuests); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLivenessRewardDatas", _m_GetLivenessRewardDatas); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDailyQuest", _m_TryGetDailyQuest); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOpenTime", _m_TryGetOpenTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestByWeekTimeNode", _m_GetQuestByWeekTimeNode); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestByWeekTime", _m_GetQuestByWeekTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateHazyRegion", _m_UpdateHazyRegion); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedpoints", _m_UpdateRedpoints); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetQuestState", _m_GetQuestState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoDailyQuest", _m_GotoDailyQuest); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "currentActiveValueUpdateEvent", _e_currentActiveValueUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "usableActivePointUpdateEvent", _e_usableActivePointUpdateEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "categoryChangeEvent", _e_categoryChangeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "newDailyQuestOpenEvent", _e_newDailyQuestOpenEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dailyQuestTotalActiveValue", _g_get_dailyQuestTotalActiveValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentDailyQuest", _g_get_currentDailyQuest); |
| | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnMapInitOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnNewFuncOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.OnNewFuncOpen( _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsNewDailyQuest(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsNewDailyQuest( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RemoveHasShowDailyQuest(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RemoveHasShowDailyQuest( ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateHazyRegion(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateRedpoints(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_newDailyQuestOpenEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.DailyQuestModel gen_to_be_invoked = (Snxxz.UI.DailyQuestModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.newDailyQuestOpenEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.newDailyQuestOpenEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.DailyQuestModel.newDailyQuestOpenEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIExpertSkillSelectWinWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ExpertSkillSelectWin); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "skillId", _g_get_skillId); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "skillId", _s_set_skillId); |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.ExpertSkillSelectWin gen_ret = new Snxxz.UI.ExpertSkillSelectWin(); |
| | | 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 Snxxz.UI.ExpertSkillSelectWin constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_skillId(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.xlua_pushinteger(L, Snxxz.UI.ExpertSkillSelectWin.skillId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_skillId(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | Snxxz.UI.ExpertSkillSelectWin.skillId = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3df689b32c9ce5d46979d60eaadc8372 |
| | | timeCreated: 1561532428 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FairyLeagueModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 45, 35, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 43, 35, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRandomAttrBuff", _m_GetRandomAttrBuff); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCrystalRate", _m_TryGetCrystalRate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAlreadyBattleGuide", _m_IsAlreadyBattleGuide); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBattleGuide", _m_SetBattleGuide); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFairyResult", _m_UpdateFairyResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFairyLeagueFairy", _m_UpdateFairyLeagueFairy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCrystalIndex", _m_GetCrystalIndex); |
| | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsAlreadyBattleGuide(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FairyLeagueModel gen_to_be_invoked = (Snxxz.UI.FairyLeagueModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsAlreadyBattleGuide( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetBattleGuide(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FairyLeagueModel gen_to_be_invoked = (Snxxz.UI.FairyLeagueModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SetBattleGuide( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FindPreciousModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 36, 4, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 4, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdateBossLineInfos", _m_OnUpdateBossLineInfos); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetBossInfo", _m_TryGetBossInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBossUnlock", _m_IsBossUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPlayerLevelLargerOrBiggerThanBoss", _m_IsPlayerLevelLargerOrBiggerThanBoss); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSameBigRealmStageBoss", _m_IsSameBigRealmStageBoss); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBossUnLockRealm", _m_GetBossUnLockRealm); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBossAlive", _m_IsBossAlive); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsPlayerLevelLargerOrBiggerThanBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FindPreciousModel gen_to_be_invoked = (Snxxz.UI.FindPreciousModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _bossId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsPlayerLevelLargerOrBiggerThanBoss( _bossId ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsSameBigRealmStageBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FuncOpen); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFuncState", _m_UpdateFuncState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFuncOpen", _m_IsFuncOpen); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Register", _m_Register); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckFuncOpen", _m_CheckFuncOpen); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "NewFuncOpenEvent", _e_NewFuncOpenEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFuncStateChangeEvent", _e_OnFuncStateChangeEvent); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_NewFuncOpenEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FuncOpen gen_to_be_invoked = (Snxxz.UI.FuncOpen)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.NewFuncOpenEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.NewFuncOpenEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FuncOpen.NewFuncOpenEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_OnFuncStateChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | public class SnxxzUIISkillMatchBridge : LuaBase, Snxxz.UI.ISkillMatch |
| | | { |
| | | public static LuaBase __Create(int reference, LuaEnv luaenv) |
| | | { |
| | | return new SnxxzUIISkillMatchBridge(reference, luaenv); |
| | | } |
| | | |
| | | public SnxxzUIISkillMatchBridge(int reference, LuaEnv luaenv) : base(reference, luaenv) |
| | | { |
| | | } |
| | | |
| | | |
| | | public System.Collections.Generic.List<int> GetSkills() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.L; |
| | | int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | LuaAPI.xlua_pushasciistring(L, "GetSkills"); |
| | | if (0 != LuaAPI.xlua_pgettable(L, -2)) |
| | | { |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | if(!LuaAPI.lua_isfunction(L, -1)) |
| | | { |
| | | LuaAPI.xlua_pushasciistring(L, "no such function GetSkills"); |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | LuaAPI.lua_pushvalue(L, -2); |
| | | LuaAPI.lua_remove(L, -3); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 1, 1, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | |
| | | System.Collections.Generic.List<int> __gen_ret = (System.Collections.Generic.List<int>)translator.GetObject(L, err_func + 1, typeof(System.Collections.Generic.List<int>)); |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public event System.Action onSkillMatchPageUpdate |
| | | { |
| | | add |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.L; |
| | | int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | LuaAPI.xlua_pushasciistring(L, "add_onSkillMatchPageUpdate"); |
| | | if (0 != LuaAPI.xlua_pgettable(L, -2)) |
| | | { |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | if(!LuaAPI.lua_isfunction(L, -1)) |
| | | { |
| | | LuaAPI.xlua_pushasciistring(L, "no such function add_onSkillMatchPageUpdate"); |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | LuaAPI.lua_pushvalue(L, -2); |
| | | LuaAPI.lua_remove(L, -3); |
| | | translator.Push(L, value); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | remove |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.L; |
| | | int err_func = LuaAPI.load_error_func(L, luaEnv.errorFuncRef); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | |
| | | LuaAPI.lua_getref(L, luaReference); |
| | | LuaAPI.xlua_pushasciistring(L, "remove_onSkillMatchPageUpdate"); |
| | | if (0 != LuaAPI.xlua_pgettable(L, -2)) |
| | | { |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | if(!LuaAPI.lua_isfunction(L, -1)) |
| | | { |
| | | LuaAPI.xlua_pushasciistring(L, "no such function remove_onSkillMatchPageUpdate"); |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | } |
| | | LuaAPI.lua_pushvalue(L, -2); |
| | | LuaAPI.lua_remove(L, -3); |
| | | translator.Push(L, value); |
| | | |
| | | int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); |
| | | if (__gen_error != 0) |
| | | luaEnv.ThrowExceptionFromError(err_func - 1); |
| | | |
| | | LuaAPI.lua_settop(L, err_func - 1); |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5517a714c786fea46ac88435af3c4d65 |
| | | timeCreated: 1561536091 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ItemLogicUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 35, 3, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEquipScore", _m_GetEquipScore); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDogzEquip", _m_IsDogzEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSpiritWeapon", _m_IsSpiritWeapon); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSuitEquip", _m_IsSuitEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpecialSpiritPropertyValue", _m_GetSpecialSpiritPropertyValue); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpecialSpiritPropertyMaxLevel", _m_GetSpecialSpiritPropertyMaxLevel); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItemEvent", _e_GetPreciousItemEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBetterEquipEvent", _e_GetBetterEquipEvent); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSpecialSpiritPropertyValue(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSpecialSpiritPropertyValue( _itemId ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSpecialSpiritPropertyMaxLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSpecialSpiritPropertyMaxLevel( _itemId ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.JadeDynastyBossModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 21, 7, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 6, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJadeDynastyBosses", _m_GetJadeDynastyBosses); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetParticipantCount", _m_GetParticipantCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLatestUnLockBoss", _m_GetLatestUnLockBoss); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRecommandBoss", _m_GetRecommandBoss); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDropItems", _m_TryGetDropItems); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCondition", _m_TryGetCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetBossLine", _m_TryGetBossLine); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "assistTimeRefresh", _e_assistTimeRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "jadeDynastyScoreRefresh", _e_jadeDynastyScoreRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "challengeLimitCount", _g_get_challengeLimitCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "challengeLimitCount", _g_get_challengeLimitCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "challengeTimes", _g_get_challengeTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "assistTimes", _g_get_assistTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectBossId", _g_get_selectBossId); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetRecommandBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.JadeDynastyBossModel gen_to_be_invoked = (Snxxz.UI.JadeDynastyBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetRecommandBoss( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetDropItems(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_challengeLimitCount(RealStatePtr L) |
| | | { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.OSGiftModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 8, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 16, 8, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsExist", _m_IsExist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistAnyGift", _m_ExistAnyGift); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftExist", _m_IsGiftExist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftBuy", _m_IsGiftBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGiftAlreadyBuy", _m_IsGiftAlreadyBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisplayErrorRemind", _m_DisplayErrorRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRechargeId", _m_GetRechargeId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAreadyOpens", _m_SetAreadyOpens); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDefaultSelect", _m_GetDefaultSelect); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDayRemind", _m_SetDayRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetInfo", _m_GetPetInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillActivePoint", _m_GetSkillActivePoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpdate", _e_onStateUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectUpdate", _e_onSelectUpdate); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpGiftId", _g_get_jumpGiftId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "gifts", _g_get_gifts); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alreadyOpens", _g_get_alreadyOpens); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "skillActivePoint", _g_get_skillActivePoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectIndex", _s_set_selectIndex); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "jumpGiftId", _s_set_jumpGiftId); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsExist(RealStatePtr L) |
| | | static int _m_ExistAnyGift(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsGiftBuy(RealStatePtr L) |
| | | static int _m_IsGiftAlreadyBuy(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DisplayErrorRemind(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _payType = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.DisplayErrorRemind( _payType ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetPetInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _petId; |
| | | int _level; |
| | | |
| | | gen_to_be_invoked.GetPetInfo( out _petId, out _level ); |
| | | LuaAPI.xlua_pushinteger(L, _petId); |
| | | |
| | | LuaAPI.xlua_pushinteger(L, _level); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSkillActivePoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _level = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSkillActivePoint( _level ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_skillActivePoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.OSGiftModel gen_to_be_invoked = (Snxxz.UI.OSGiftModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.skillActivePoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectIndex(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ReikiRootModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 21, 11); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 24, 11); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectReikiRoot", _g_get_selectReikiRoot); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "openFromTreasureSkill", _g_get_openFromTreasureSkill); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reikiPointPromoteSymbol", _g_get_reikiPointPromoteSymbol); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectLimitLevel", _g_get_effectLimitLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reikiPointAutoAddLevel", _g_get_reikiPointAutoAddLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelUpAddPoint", _g_get_levelUpAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "titleAddPoint", _g_get_titleAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureAddPoint", _g_get_treasureAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastReikiRootPoints", _g_get_lastReikiRootPoints); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "afterReikiRootPoints", _g_get_afterReikiRootPoints); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reikiRoots", _g_get_reikiRoots); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_effectLimitLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.effectLimitLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_reikiPointAutoAddLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_titleAddPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.titleAddPoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_treasureAddPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.treasureAddPoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_lastReikiRootPoints(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVipPushNotifyByVipExperience", _m_SetVipPushNotifyByVipExperience); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPushSet", _m_RefreshPushSet); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOpenDailyIdlist", _m_GetOpenDailyIdlist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSwitchStateByIndex", _m_GetSwitchStateByIndex); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDailyInfoById", _m_GetDailyInfoById); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSwitchIndexById", _m_GetSwitchIndexById); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRefreshFreeTimeEvent", _m_SetRefreshFreeTimeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TestDailyQuestUnLock", _m_TestDailyQuestUnLock); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSwitchStateByIndex(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.SetPrivateModel gen_to_be_invoked = (Snxxz.UI.SetPrivateModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.GetSwitchStateByIndex( _index ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetDailyInfoById(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.SetPrivateModel gen_to_be_invoked = (Snxxz.UI.SetPrivateModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | string _title; |
| | | string _week; |
| | | System.Collections.Generic.List<string> _times; |
| | | |
| | | gen_to_be_invoked.GetDailyInfoById( _id, out _title, out _week, out _times ); |
| | | LuaAPI.lua_pushstring(L, _title); |
| | | |
| | | LuaAPI.lua_pushstring(L, _week); |
| | | |
| | | translator.Push(L, _times); |
| | | |
| | | |
| | | |
| | | |
| | | return 3; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSwitchIndexById(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.SkillModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 33, 25, 15); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 35, 25, 15); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDayRemind", _m_SetDayRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsImmediatelyUnlock", _m_IsImmediatelyUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTaskHoleRemind", _m_SetTaskHoleRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillMatchs", _m_GetSkillMatchs); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefreshSltSkill", _e_OnRefreshSltSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAutoUseXpEvent", _e_OnAutoUseXpEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePassEquipSkillEvent", _e_UpdatePassEquipSkillEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "taskUnlockUpdate", _e_taskUnlockUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSkillMatchPageUpdate", _e_onSkillMatchPageUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "passEquipCnt", _g_get_passEquipCnt); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "skillActDict", _g_get_skillActDict); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSkillMatchs(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.SkillModel gen_to_be_invoked = (Snxxz.UI.SkillModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetSkillMatchs( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onSkillMatchPageUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.SkillModel gen_to_be_invoked = (Snxxz.UI.SkillModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.onSkillMatchPageUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onSkillMatchPageUpdate -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.SkillModel.onSkillMatchPageUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.SkyTowerModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 3, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 4, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "allPassed", _g_get_allPassed); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "highestPassFloor", _g_get_highestPassFloor); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentFloor", _g_get_currentFloor); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint01", _g_get_redpoint01); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpoint01", _s_set_redpoint01); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_redpoint01(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SkyTowerModel gen_to_be_invoked = (Snxxz.UI.SkyTowerModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.redpoint01); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_redpoint01(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.SkyTowerModel gen_to_be_invoked = (Snxxz.UI.SkyTowerModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.redpoint01 = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.TreasureModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 44, 20, 12); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 44, 19, 12); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateStage", _m_CreateStage_xlua_st_); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 2, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CreateStage_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | { |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetName(RealStatePtr L) |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.WorldBossModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 9, 5, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 11, 7, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldBossRemainCount", _m_GetWorldBossRemainCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetBossData", _m_TryGetBossData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAddTimesRedPoint", _m_UpdateAddTimesRedPoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldBosses", _m_GetWorldBosses); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRecommendBoss", _m_GetRecommendBoss); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossSelectedEvent", _e_bossSelectedEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossWearyValueChangeEvent", _e_bossWearyValueChangeEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedBoss", _g_get_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "WorldBossMaxCount", _g_get_WorldBossMaxCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedBoss", _g_get_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "wearyValue", _g_get_wearyValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraBossWearyValue", _g_get_extraBossWearyValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "funcOpenClickSymbol", _g_get_funcOpenClickSymbol); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldBossRedPoint", _g_get_worldBossRedPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldBossAddTimeRedPoint", _g_get_worldBossAddTimeRedPoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedBoss", _s_set_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "wearyValue", _s_set_wearyValue); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "extraBossWearyValue", _s_set_extraBossWearyValue); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "funcOpenClickSymbol", _s_set_funcOpenClickSymbol); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldBossRedPoint", _s_set_worldBossRedPoint); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldBossAddTimeRedPoint", _s_set_worldBossAddTimeRedPoint); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WORLDBOSS_REDPOINT", Snxxz.UI.WorldBossModel.WORLDBOSS_REDPOINT); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WORLDBOSSADDTIMES_REDPOINT", Snxxz.UI.WorldBossModel.WORLDBOSSADDTIMES_REDPOINT); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetWorldBossRemainCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetWorldBossRemainCount( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateAddTimesRedPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UpdateAddTimesRedPoint( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetWorldBosses(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_WorldBossMaxCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.WorldBossMaxCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectedBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.worldBossRedPoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_worldBossAddTimeRedPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.worldBossAddTimeRedPoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_worldBossAddTimeRedPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WorldBossModel gen_to_be_invoked = (Snxxz.UI.WorldBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.worldBossAddTimeRedPoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SpiritWeaponConfigWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SpiritWeaponConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemID", _g_get_ItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Level", _g_get_Level); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AttrIDList", _g_get_AttrIDList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AttrValueList", _g_get_AttrValueList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AttrColorList", _g_get_AttrColorList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "AttrScore", _g_get_AttrScore); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 6, 1, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Get", _m_Get_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeys", _m_GetKeys_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValues", _m_GetValues_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Has", _m_Has_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inited", _g_get_inited); |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | SpiritWeaponConfig gen_ret = new SpiritWeaponConfig(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _input = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | SpiritWeaponConfig gen_ret = new SpiritWeaponConfig(_input); |
| | | 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 SpiritWeaponConfig constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Get_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | SpiritWeaponConfig gen_ret = SpiritWeaponConfig.Get( _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | SpiritWeaponConfig gen_ret = SpiritWeaponConfig.Get( _id ); |
| | | 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 SpiritWeaponConfig.Get!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKeys_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<string> gen_ret = SpiritWeaponConfig.GetKeys( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetValues_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<SpiritWeaponConfig> gen_ret = SpiritWeaponConfig.GetValues( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Has_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = SpiritWeaponConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _id = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = SpiritWeaponConfig.Has( _id ); |
| | | LuaAPI.lua_pushboolean(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 SpiritWeaponConfig.Has!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) |
| | | { |
| | | bool _sync = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | SpiritWeaponConfig.Init( _sync ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 0) |
| | | { |
| | | |
| | | SpiritWeaponConfig.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to SpiritWeaponConfig.Init!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_inited(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, SpiritWeaponConfig.inited); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Level(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Level); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AttrIDList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.AttrIDList); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AttrValueList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.AttrValueList); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AttrColorList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.AttrColorList); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_AttrScore(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | SpiritWeaponConfig gen_to_be_invoked = (SpiritWeaponConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AttrScore); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 95808932397ba624f8b9ca689d312962 |
| | | timeCreated: 1561454710 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(StatusMgr); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 24, 5, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 5, 5); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddClientBuff", _m_AddClientBuff); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Request", _m_Request); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanCastSkill", _m_CanCastSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_AddClientBuff(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | StatusMgr gen_to_be_invoked = (StatusMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | uint _sid = LuaAPI.xlua_touint(L, 2); |
| | | int _skillId = LuaAPI.xlua_tointeger(L, 3); |
| | | uint _srcSid = LuaAPI.xlua_touint(L, 4); |
| | | int _type = LuaAPI.xlua_tointeger(L, 5); |
| | | int _lastTime = LuaAPI.xlua_tointeger(L, 6); |
| | | |
| | | gen_to_be_invoked.AddClientBuff( _sid, _skillId, _srcSid, _type, _lastTime ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Request(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TalkNum", _g_get_TalkNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "content", _g_get_content); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Speaker1", _g_get_Speaker1); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskMusic", _g_get_TaskMusic); |
| | | |
| | | |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_TaskMusic(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | StoryMissionsConfig gen_to_be_invoked = (StoryMissionsConfig)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.TaskMusic); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class UIDragDropBehaviourWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UIDragDropBehaviour); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 1, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDragDropState", _m_SetDragDropState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onClick", _e_onClick); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "data", _g_get_data); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "data", _s_set_data); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 2, 2); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "draging", _g_get_draging); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "dragData", _g_get_dragData); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "draging", _s_set_draging); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "dragData", _s_set_dragData); |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | UIDragDropBehaviour gen_ret = new UIDragDropBehaviour(); |
| | | 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 UIDragDropBehaviour constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _data = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.Init( _data ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetDragDropState(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | bool _allow = LuaAPI.lua_toboolean(L, 2); |
| | | |
| | | gen_to_be_invoked.SetDragDropState( _allow ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPointerDown(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); |
| | | |
| | | gen_to_be_invoked.OnPointerDown( _eventData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPointerEnter(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); |
| | | |
| | | gen_to_be_invoked.OnPointerEnter( _eventData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPointerExit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); |
| | | |
| | | gen_to_be_invoked.OnPointerExit( _eventData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPointerUp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); |
| | | |
| | | gen_to_be_invoked.OnPointerUp( _eventData ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_draging(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UIDragDropBehaviour.draging); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_dragData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.xlua_pushinteger(L, UIDragDropBehaviour.dragData); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_data(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.data); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_draging(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UIDragDropBehaviour.draging = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_dragData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UIDragDropBehaviour.dragData = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_data(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.data = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onClick(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | UIDragDropBehaviour gen_to_be_invoked = (UIDragDropBehaviour)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.onClick += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onClick -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to UIDragDropBehaviour.onClick!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d0ec169366a331b44b357149168da8f0 |
| | | timeCreated: 1561517335 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class UnityEngineInputWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UnityEngine.Input); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 17, 26, 6); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAxis", _m_GetAxis_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAxisRaw", _m_GetAxisRaw_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButton", _m_GetButton_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButtonDown", _m_GetButtonDown_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButtonUp", _m_GetButtonUp_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKey", _m_GetKey_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeyDown", _m_GetKeyDown_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeyUp", _m_GetKeyUp_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetJoystickNames", _m_GetJoystickNames_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "IsJoystickPreconfigured", _m_IsJoystickPreconfigured_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButton", _m_GetMouseButton_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButtonDown", _m_GetMouseButtonDown_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButtonUp", _m_GetMouseButtonUp_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ResetInputAxes", _m_ResetInputAxes_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAccelerationEvent", _m_GetAccelerationEvent_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTouch", _m_GetTouch_xlua_st_); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compensateSensors", _g_get_compensateSensors); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "gyro", _g_get_gyro); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mousePosition", _g_get_mousePosition); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mouseScrollDelta", _g_get_mouseScrollDelta); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mousePresent", _g_get_mousePresent); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "simulateMouseWithTouches", _g_get_simulateMouseWithTouches); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anyKey", _g_get_anyKey); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anyKeyDown", _g_get_anyKeyDown); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inputString", _g_get_inputString); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "acceleration", _g_get_acceleration); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "accelerationEvents", _g_get_accelerationEvents); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "accelerationEventCount", _g_get_accelerationEventCount); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touches", _g_get_touches); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchCount", _g_get_touchCount); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchPressureSupported", _g_get_touchPressureSupported); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "stylusTouchSupported", _g_get_stylusTouchSupported); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchSupported", _g_get_touchSupported); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "multiTouchEnabled", _g_get_multiTouchEnabled); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "location", _g_get_location); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compass", _g_get_compass); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceOrientation", _g_get_deviceOrientation); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "imeCompositionMode", _g_get_imeCompositionMode); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compositionString", _g_get_compositionString); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "imeIsSelected", _g_get_imeIsSelected); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compositionCursorPos", _g_get_compositionCursorPos); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "backButtonLeavesApp", _g_get_backButtonLeavesApp); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "compensateSensors", _s_set_compensateSensors); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "simulateMouseWithTouches", _s_set_simulateMouseWithTouches); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "multiTouchEnabled", _s_set_multiTouchEnabled); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "imeCompositionMode", _s_set_imeCompositionMode); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "compositionCursorPos", _s_set_compositionCursorPos); |
| | | Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "backButtonLeavesApp", _s_set_backButtonLeavesApp); |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | UnityEngine.Input gen_ret = new UnityEngine.Input(); |
| | | 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 UnityEngine.Input constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAxis_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _axisName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | float gen_ret = UnityEngine.Input.GetAxis( _axisName ); |
| | | LuaAPI.lua_pushnumber(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAxisRaw_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _axisName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | float gen_ret = UnityEngine.Input.GetAxisRaw( _axisName ); |
| | | LuaAPI.lua_pushnumber(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetButton_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _buttonName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetButton( _buttonName ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetButtonDown_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _buttonName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetButtonDown( _buttonName ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetButtonUp_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _buttonName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetButtonUp( _buttonName ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKey_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKey( _name ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& translator.Assignable<UnityEngine.KeyCode>(L, 1)) |
| | | { |
| | | UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKey( _key ); |
| | | LuaAPI.lua_pushboolean(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 UnityEngine.Input.GetKey!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKeyDown_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKeyDown( _name ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& translator.Assignable<UnityEngine.KeyCode>(L, 1)) |
| | | { |
| | | UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKeyDown( _key ); |
| | | LuaAPI.lua_pushboolean(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 UnityEngine.Input.GetKeyDown!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetKeyUp_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKeyUp( _name ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 1&& translator.Assignable<UnityEngine.KeyCode>(L, 1)) |
| | | { |
| | | UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetKeyUp( _key ); |
| | | LuaAPI.lua_pushboolean(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 UnityEngine.Input.GetKeyUp!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetJoystickNames_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | string[] gen_ret = UnityEngine.Input.GetJoystickNames( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsJoystickPreconfigured_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string _joystickName = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.IsJoystickPreconfigured( _joystickName ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetMouseButton_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _button = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetMouseButton( _button ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetMouseButtonDown_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _button = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetMouseButtonDown( _button ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetMouseButtonUp_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _button = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | bool gen_ret = UnityEngine.Input.GetMouseButtonUp( _button ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ResetInputAxes_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | UnityEngine.Input.ResetInputAxes( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAccelerationEvent_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | UnityEngine.AccelerationEvent gen_ret = UnityEngine.Input.GetAccelerationEvent( _index ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTouch_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 1); |
| | | |
| | | UnityEngine.Touch gen_ret = UnityEngine.Input.GetTouch( _index ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_compensateSensors(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.compensateSensors); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_gyro(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.gyro); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_mousePosition(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.PushUnityEngineVector3(L, UnityEngine.Input.mousePosition); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_mouseScrollDelta(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.PushUnityEngineVector2(L, UnityEngine.Input.mouseScrollDelta); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_mousePresent(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.mousePresent); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_simulateMouseWithTouches(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.simulateMouseWithTouches); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_anyKey(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.anyKey); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_anyKeyDown(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.anyKeyDown); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_inputString(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushstring(L, UnityEngine.Input.inputString); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_acceleration(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.PushUnityEngineVector3(L, UnityEngine.Input.acceleration); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_accelerationEvents(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.accelerationEvents); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_accelerationEventCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.xlua_pushinteger(L, UnityEngine.Input.accelerationEventCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_touches(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.touches); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_touchCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.xlua_pushinteger(L, UnityEngine.Input.touchCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_touchPressureSupported(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.touchPressureSupported); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_stylusTouchSupported(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.stylusTouchSupported); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_touchSupported(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.touchSupported); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_multiTouchEnabled(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.multiTouchEnabled); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_location(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.location); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_compass(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.compass); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_deviceOrientation(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.deviceOrientation); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_imeCompositionMode(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.Push(L, UnityEngine.Input.imeCompositionMode); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_compositionString(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushstring(L, UnityEngine.Input.compositionString); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_imeIsSelected(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.imeIsSelected); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_compositionCursorPos(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | translator.PushUnityEngineVector2(L, UnityEngine.Input.compositionCursorPos); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_backButtonLeavesApp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushboolean(L, UnityEngine.Input.backButtonLeavesApp); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_compensateSensors(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UnityEngine.Input.compensateSensors = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_simulateMouseWithTouches(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UnityEngine.Input.simulateMouseWithTouches = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_multiTouchEnabled(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UnityEngine.Input.multiTouchEnabled = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_imeCompositionMode(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | UnityEngine.IMECompositionMode gen_value;translator.Get(L, 1, out gen_value); |
| | | UnityEngine.Input.imeCompositionMode = gen_value; |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_compositionCursorPos(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | UnityEngine.Vector2 gen_value;translator.Get(L, 1, out gen_value); |
| | | UnityEngine.Input.compositionCursorPos = gen_value; |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_backButtonLeavesApp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | UnityEngine.Input.backButtonLeavesApp = LuaAPI.lua_toboolean(L, 1); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a44539c4d58984846adff9d460c1d9fe |
| | | timeCreated: 1561519921 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class UnityEngineRectTransformUtilityWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UnityEngine.RectTransformUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "RectangleContainsScreenPoint", _m_RectangleContainsScreenPoint_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToWorldPointInRectangle", _m_ScreenPointToWorldPointInRectangle_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToLocalPointInRectangle", _m_ScreenPointToLocalPointInRectangle_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "ScreenPointToRay", _m_ScreenPointToRay_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "WorldToScreenPoint", _m_WorldToScreenPoint_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateRelativeRectTransformBounds", _m_CalculateRelativeRectTransformBounds_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "FlipLayoutOnAxis", _m_FlipLayoutOnAxis_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "FlipLayoutAxes", _m_FlipLayoutAxes_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "PixelAdjustPoint", _m_PixelAdjustPoint_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "PixelAdjustRect", _m_PixelAdjustRect_xlua_st_); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | return LuaAPI.luaL_error(L, "UnityEngine.RectTransformUtility does not have a constructor!"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RectangleContainsScreenPoint_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<UnityEngine.RectTransform>(L, 1)&& translator.Assignable<UnityEngine.Vector2>(L, 2)) |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); |
| | | |
| | | bool gen_ret = UnityEngine.RectTransformUtility.RectangleContainsScreenPoint( _rect, _screenPoint ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<UnityEngine.RectTransform>(L, 1)&& translator.Assignable<UnityEngine.Vector2>(L, 2)&& translator.Assignable<UnityEngine.Camera>(L, 3)) |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); |
| | | UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); |
| | | |
| | | bool gen_ret = UnityEngine.RectTransformUtility.RectangleContainsScreenPoint( _rect, _screenPoint, _cam ); |
| | | LuaAPI.lua_pushboolean(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 UnityEngine.RectTransformUtility.RectangleContainsScreenPoint!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ScreenPointToWorldPointInRectangle_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); |
| | | UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); |
| | | UnityEngine.Vector3 _worldPoint; |
| | | |
| | | bool gen_ret = UnityEngine.RectTransformUtility.ScreenPointToWorldPointInRectangle( _rect, _screenPoint, _cam, out _worldPoint ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.PushUnityEngineVector3(L, _worldPoint); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ScreenPointToLocalPointInRectangle_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); |
| | | UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); |
| | | UnityEngine.Vector2 _localPoint; |
| | | |
| | | bool gen_ret = UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle( _rect, _screenPoint, _cam, out _localPoint ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.PushUnityEngineVector2(L, _localPoint); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ScreenPointToRay_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); |
| | | UnityEngine.Vector2 _screenPos;translator.Get(L, 2, out _screenPos); |
| | | |
| | | UnityEngine.Ray gen_ret = UnityEngine.RectTransformUtility.ScreenPointToRay( _cam, _screenPos ); |
| | | translator.PushUnityEngineRay(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_WorldToScreenPoint_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); |
| | | UnityEngine.Vector3 _worldPoint;translator.Get(L, 2, out _worldPoint); |
| | | |
| | | UnityEngine.Vector2 gen_ret = UnityEngine.RectTransformUtility.WorldToScreenPoint( _cam, _worldPoint ); |
| | | translator.PushUnityEngineVector2(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CalculateRelativeRectTransformBounds_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 1&& translator.Assignable<UnityEngine.Transform>(L, 1)) |
| | | { |
| | | UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); |
| | | |
| | | UnityEngine.Bounds gen_ret = UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds( _trans ); |
| | | translator.PushUnityEngineBounds(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 2&& translator.Assignable<UnityEngine.Transform>(L, 1)&& translator.Assignable<UnityEngine.Transform>(L, 2)) |
| | | { |
| | | UnityEngine.Transform _root = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); |
| | | UnityEngine.Transform _child = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); |
| | | |
| | | UnityEngine.Bounds gen_ret = UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds( _root, _child ); |
| | | translator.PushUnityEngineBounds(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 UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_FlipLayoutOnAxis_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | int _axis = LuaAPI.xlua_tointeger(L, 2); |
| | | bool _keepPositioning = LuaAPI.lua_toboolean(L, 3); |
| | | bool _recursive = LuaAPI.lua_toboolean(L, 4); |
| | | |
| | | UnityEngine.RectTransformUtility.FlipLayoutOnAxis( _rect, _axis, _keepPositioning, _recursive ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_FlipLayoutAxes_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | bool _keepPositioning = LuaAPI.lua_toboolean(L, 2); |
| | | bool _recursive = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | UnityEngine.RectTransformUtility.FlipLayoutAxes( _rect, _keepPositioning, _recursive ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PixelAdjustPoint_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Vector2 _point;translator.Get(L, 1, out _point); |
| | | UnityEngine.Transform _elementTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); |
| | | UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 3, typeof(UnityEngine.Canvas)); |
| | | |
| | | UnityEngine.Vector2 gen_ret = UnityEngine.RectTransformUtility.PixelAdjustPoint( _point, _elementTransform, _canvas ); |
| | | translator.PushUnityEngineVector2(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PixelAdjustRect_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.RectTransform _rectTransform = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); |
| | | UnityEngine.Canvas _canvas = (UnityEngine.Canvas)translator.GetObject(L, 2, typeof(UnityEngine.Canvas)); |
| | | |
| | | UnityEngine.Rect gen_ret = UnityEngine.RectTransformUtility.PixelAdjustRect( _rectTransform, _canvas ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 53162ab8f16a8bf44a000ebdacaee546 |
| | | timeCreated: 1561519921 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 4&& translator.Assignable<UnityEngine.UI.Text>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | UnityEngine.UI.Text __btnTxt = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); |
| | | bool __colorful = LuaAPI.lua_toboolean(L, 3); |
| | | int _pattern = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | gen_to_be_invoked.SetColorful( __btnTxt, __colorful, _pattern ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& translator.Assignable<UnityEngine.UI.Text>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | UnityEngine.UI.Text __btnTxt = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); |
| | | bool __colorful = LuaAPI.lua_toboolean(L, 3); |
| | |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Button.SetColorful!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | |
| | | translator.DelayWrapLoader(typeof(DamageNumConfig), DamageNumConfigWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DemonJarConfig), DemonJarConfigWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DemonRecommondPropertyConfig), DemonRecommondPropertyConfigWrap.__Register); |
| | | |
| | | |
| | |
| | | translator.DelayWrapLoader(typeof(SkyTowerConfig), SkyTowerConfigWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SpiritWeaponConfig), SpiritWeaponConfigWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(StoreConfig), StoreConfigWrap.__Register); |
| | | |
| | | |
| | |
| | | translator.DelayWrapLoader(typeof(System.Enum), SystemEnumWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.RectTransformUtility), UnityEngineRectTransformUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Input), UnityEngineInputWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ModelUtility), ModelUtilityWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(AssetVersionUtility), AssetVersionUtilityWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(DownLoadAndDiscompressTask), DownLoadAndDiscompressTaskWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(InGameDownLoad), InGameDownLoadWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.AuctionNewGetShowModel), SnxxzUIAuctionNewGetShowModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDressModel), SnxxzUIFashionDressModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BossHomeModel), SnxxzUIBossHomeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DemonJarModel), SnxxzUIDemonJarModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ElderGodAreaModel), SnxxzUIElderGodAreaModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OffLineOnHookModel), SnxxzUIOffLineOnHookModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PKModel), SnxxzUIPKModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.StoryMissionsModel), SnxxzUIStoryMissionsModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TaskAllocation), SnxxzUITaskAllocationWrap.__Register); |
| | | |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RuneTowerModel), SnxxzUIRuneTowerModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ExpertSkillSelectWin), SnxxzUIExpertSkillSelectWinWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TalentModel), SnxxzUITalentModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TreasureSkillModel), SnxxzUITreasureSkillModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoroutineMgr), CoroutineMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(BuyItemController), BuyItemControllerWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeDownMgr), TimeDownMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UI3DModelExhibition), SnxxzUIUI3DModelExhibitionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UIDragDropBehaviour), UIDragDropBehaviourWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ButtonEx), ButtonExWrap.__Register); |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(ImageEx), ImageExWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UIAlphaTween), SnxxzUIUIAlphaTweenWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(MapType), MapTypeWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(GuideType), GuideTypeWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(E_AtkType), E_AtkTypeWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(GameObjType), GameObjTypeWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.AddInterfaceBridgeCreator(typeof(Snxxz.UI.ILuaOpenServerActivity), SnxxzUIILuaOpenServerActivityBridge.__Create); |
| | | |
| | | translator.AddInterfaceBridgeCreator(typeof(Snxxz.UI.ISkillMatch), SnxxzUIISkillMatchBridge.__Create); |
| | | |
| | | } |
| | | |
| | | static XLua_Gen_Initer_Register__() |
| | |
| | | <type fullname="SkillConfig" preserve="all"/> |
| | | <type fullname="SkillFrameAnimationConfig" preserve="all"/> |
| | | <type fullname="SkyTowerConfig" preserve="all"/> |
| | | <type fullname="SpiritWeaponPropertyConfig" preserve="all"/> |
| | | <type fullname="SpiritWeaponConfig" preserve="all"/> |
| | | <type fullname="StoreConfig" preserve="all"/> |
| | | <type fullname="StoryMissionsConfig" preserve="all"/> |
| | | <type fullname="SuccessConfig" preserve="all"/> |
| | |
| | | <type fullname="Snxxz.UI.RuneModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.RuneResolveModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.RuneTowerModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.ExpertSkillSelectWin" preserve="all"/> |
| | | <type fullname="QuickSetting" preserve="all"/> |
| | | <type fullname="Snxxz.UI.SkillModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.TalentModel" preserve="all"/> |
| | |
| | | <type fullname="Snxxz.UI.ItemBehaviour" preserve="all"/> |
| | | <type fullname="TimeDownMgr" preserve="all"/> |
| | | <type fullname="Snxxz.UI.UI3DModelExhibition" preserve="all"/> |
| | | <type fullname="UIDragDropBehaviour" preserve="all"/> |
| | | <type fullname="ButtonEx" preserve="all"/> |
| | | <type fullname="ImageEx" preserve="all"/> |
| | | <type fullname="Snxxz.UI.UIAlphaTween" preserve="all"/> |
| | |
| | | <type fullname="UnityEngine.Light" preserve="all"/> |
| | | <type fullname="UnityEngine.Mathf" preserve="all"/> |
| | | <type fullname="UnityEngine.Debug" preserve="all"/> |
| | | <type fullname="UnityEngine.RectTransformUtility" preserve="all"/> |
| | | <type fullname="UnityEngine.Input" preserve="all"/> |
| | | |
| | | </assembly> |
| | | |
| | |
| | | typeof(RawImage), |
| | | typeof(InputField), |
| | | typeof(Enum), |
| | | typeof(RectTransformUtility), |
| | | typeof(Input), |
| | | }; |
| | | |
| | | //C#静态调用Lua的配置(包括事件的原型),仅可以配delegate,interface |
| | |
| | | public string fairyLeagueFairyName { get; private set; }
|
| | |
|
| | | public event Action UpdateWarRankEvent;
|
| | | public bool IsAlreadyBattleGuide()
|
| | | {
|
| | | return QuickSetting.Instance.GetQuickSettingBool(QuickSetting.QuickSettingType.FairyLeagueGuide, 0);
|
| | | }
|
| | | public void SetBattleGuide()
|
| | | {
|
| | | QuickSetting.Instance.SetQuickSetting(QuickSetting.QuickSettingType.FairyLeagueGuide, true);
|
| | | QuickSetting.Instance.SendPackage();
|
| | | }
|
| | |
|
| | | public List<FairyLeagueResultData> fairyLeagueResults = new List<FairyLeagueResultData>();
|
| | | public void UpdateFairyResult(HB210_tagMCFamilyWarBillboard _package)
|
| | | {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ExpertSkillSelectWin : Window
|
| | | {
|
| | | [SerializeField] Image m_SkillIcon;
|
| | |
| | |
|
| | | bool firstActive = false;
|
| | |
|
| | | bool openByTreasure = false;
|
| | | bool openFromOtherWindow = false;
|
| | |
|
| | | List<int> datas = new List<int>();
|
| | |
|
| | |
| | | protected override void OnPreOpen()
|
| | | {
|
| | | model.expertActiveRefresh += ExpertActiveRefresh;
|
| | | openByTreasure = WindowCenter.Instance.IsOpen<TreasureBaseWin>();
|
| | | openFromOtherWindow = WindowCenter.Instance.IsOpen<TreasureBaseWin>()
|
| | | || WindowCenter.Instance.IsOpen("SkillMatchWin");
|
| | | firstActive = false;
|
| | | }
|
| | |
|
| | |
| | | var satisfyActive = model.SatisfyActiveExpert(skillId, out error);
|
| | |
|
| | | m_Active.gameObject.SetActive((satisfyActive || error == 3)
|
| | | && !firstActive && !openByTreasure);
|
| | | && !firstActive && !openFromOtherWindow);
|
| | |
|
| | | if ((satisfyActive || error == 3)
|
| | | && !firstActive && !openByTreasure)
|
| | | && !firstActive && !openFromOtherWindow)
|
| | | {
|
| | | if (satisfyActive && !m_ActiveEffect.IsPlaying)
|
| | | {
|
| | |
| | | { |
| | | public QuickSetting() |
| | | { |
| | | quickSettingDic.Add(QuickSettingType.Skill, new QuickSettingRange(QuickSettingType.Skill, 30, 3)); |
| | | quickSettingDic.Add(QuickSettingType.FairyLeagueGuide, new QuickSettingRange(QuickSettingType.FairyLeagueGuide, 1)); |
| | | quickSettingDic.Add(QuickSettingType.AutoUseXp, new QuickSettingRange(QuickSettingType.AutoUseXp, 1)); |
| | | quickSettingDic.Add(QuickSettingType.SpAnim, new QuickSettingRange(QuickSettingType.SpAnim, 10)); |
| | | quickSettingDic.Add(QuickSettingType.TreasureHighestAnim, new QuickSettingRange(QuickSettingType.TreasureHighestAnim, 10)); |
| | | quickSettingDic.Add(QuickSettingType.GatherSoulAutoResolve, new QuickSettingRange(QuickSettingType.GatherSoulAutoResolve, 1)); |
| | | quickSettingDic.Add(QuickSettingType.Skill, new QuickSettingRange(QuickSettingType.Skill, 0, 30, 3)); |
| | | quickSettingDic.Add(QuickSettingType.SkillMatchPage, new QuickSettingRange(QuickSettingType.SkillMatchPage, 30, 1)); |
| | | quickSettingDic.Add(QuickSettingType.AutoUseXp, new QuickSettingRange(QuickSettingType.AutoUseXp, 31, 1));
|
| | | quickSettingDic.Add(QuickSettingType.SkillMatch, new QuickSettingRange(QuickSettingType.SkillMatch, 32, 45, 1)); |
| | | quickSettingDic.Add(QuickSettingType.GatherSoulAutoResolve, new QuickSettingRange(QuickSettingType.GatherSoulAutoResolve, 80, 1)); |
| | | setting = new string(UCharacter, 100); |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerDataInitializeEvent; |
| | | } |
| | |
| | | private string setting; |
| | | private StringBuilder textBuilder = new StringBuilder(); |
| | | |
| | | public event Action onQuickSettingUpdate; |
| | | |
| | | public void SetQuickSetting<T>(QuickSettingType type, T value, int index = 0) where T : struct |
| | | { |
| | | SetQuickSetting(type, value.ToString(), index); |
| | |
| | | { |
| | | SetQuickSetting<int>(type, value ? 1 : 0, index); |
| | | } |
| | | |
| | | public void SetQuickSetting(int type, string value, int index)
|
| | | {
|
| | | SetQuickSetting((QuickSettingType)type, value, index);
|
| | | } |
| | | |
| | | public void SetQuickSetting(QuickSettingType type, string value, int index) |
| | | { |
| | | var quickRange = quickSettingDic[type]; |
| | | if (index * quickRange.single + value.Length > quickRange.length || value.Length > quickRange.single) |
| | | if ((index - quickRange.index) * quickRange.single + value.Length > quickRange.length || value.Length > quickRange.single) |
| | | { |
| | | DebugEx.LogErrorFormat("存储的数据超过最大长度!{0}", type); |
| | | return; |
| | |
| | | PlayerDatas.Instance.baseData.Setting = setting; |
| | | } |
| | | PlayerDatas.Instance.skill.SetQuickSkills(); |
| | | |
| | | if (onQuickSettingUpdate != null)
|
| | | {
|
| | | onQuickSettingUpdate();
|
| | | } |
| | | } |
| | | |
| | | public T GetQuickSettingValue<T>(QuickSettingType type, int index) where T : struct |
| | |
| | | return _value == 1; |
| | | } |
| | | |
| | | public string GetQuickSetting(int type, int index)
|
| | | {
|
| | | return GetQuickSetting((QuickSettingType)type, index);
|
| | | } |
| | | |
| | | public void SendPackage() |
| | | { |
| | | C0303_tagCSetShutCutData vNetData = new C0303_tagCSetShutCutData(); |
| | |
| | | public enum QuickSettingType |
| | | { |
| | | Skill, |
| | | FairyLeagueGuide, |
| | | SkillMatchPage, |
| | | AutoUseXp, |
| | | SpAnim, |
| | | TreasureHighestAnim, |
| | | SkillMatch, |
| | | GatherSoulAutoResolve |
| | | } |
| | | public struct QuickSettingRange |
| | | { |
| | | private static int presentIndex = 0; |
| | | |
| | | public QuickSettingType type; |
| | | public int index; |
| | | public int length; |
| | | public int single; |
| | | |
| | | public QuickSettingRange(QuickSettingType type, int length, int single = 0) |
| | | public QuickSettingRange(QuickSettingType type, int start, int length, int single = 0) |
| | | { |
| | | this.type = type; |
| | | this.index = presentIndex; |
| | | this.index = start; |
| | | this.length = length; |
| | | this.single = single == 0 ? length : single; |
| | | presentIndex += length; |
| | | } |
| | | } |
| | | } |
| | |
| | | [SerializeField] SkillTurnplate m_SkillTurnplate;
|
| | | [SerializeField] Button m_AutoUseXp;
|
| | | [SerializeField] Image m_AutoXpCheck;
|
| | | [SerializeField] Button m_SkillMatch;
|
| | | private List<int> skillListAct = new List<int>();
|
| | | private bool onXpCoolDown = false;
|
| | |
|
| | |
| | | UpdateSkillPage();
|
| | | }
|
| | | });
|
| | | m_SkillMatch.AddListener(() =>
|
| | | {
|
| | | WindowCenter.Instance.Open("SkillMatchWin");
|
| | | });
|
| | | for (int i = 0; i < m_QuickSkills.Count; i++)
|
| | | {
|
| | | int index = i;
|
| | |
| | | ParseConfig();
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | TaskModel.Event_TaskInformation += TaskInformationUpdate;
|
| | |
|
| | | ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
|
| | | if (skillMatch != null)
|
| | | {
|
| | | skillMatch.onSkillMatchPageUpdate += OnSkillMatchPageUpdate;
|
| | | }
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | public event Action onSkillMatchPageUpdate;
|
| | | private void OnSkillMatchPageUpdate()
|
| | | {
|
| | | if (onSkillMatchPageUpdate != null)
|
| | | {
|
| | | onSkillMatchPageUpdate();
|
| | | }
|
| | |
|
| | | var list = GetSkillMatchs();
|
| | | if (list != null)
|
| | | {
|
| | | foreach (var item in list)
|
| | | {
|
| | | Debug.Log(item);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public List<int> GetSkillMatchs()
|
| | | {
|
| | | ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
|
| | | if (skillMatch != null)
|
| | | {
|
| | | return skillMatch.GetSkills();
|
| | | }
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | public struct PassSkillLimit
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | [XLua.CSharpCallLua]
|
| | | public interface ISkillMatch
|
| | | {
|
| | | List<int> GetSkills();
|
| | | event Action onSkillMatchPageUpdate;
|
| | | }
|
| | | }
|
| | |
|
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine;
|
| | | using UnityEngine.EventSystems;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class UIDragDropBehaviour : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerExitHandler, IPointerEnterHandler
|
| | | {
|
| | | public static bool draging = false;
|
| | | public static int dragData = 0;
|
| | |
|
| | | [HideInInspector] public int data;
|
| | |
|
| | | const float dragDelay = 0.2f;
|
| | |
|
| | | bool m_AllowDragDrop = true;
|
| | | bool m_OnPress = false;
|
| | | bool m_AllowClick = false;
|
| | | float m_Time = 0.0f;
|
| | |
|
| | | public event Action<int> onClick;
|
| | |
|
| | | public void Init(int data)
|
| | | {
|
| | | this.data = data;
|
| | | }
|
| | |
|
| | | public void SetDragDropState(bool allow)
|
| | | {
|
| | | m_AllowDragDrop = allow;
|
| | | }
|
| | |
|
| | | public void OnPointerDown(PointerEventData eventData)
|
| | | {
|
| | | draging = false;
|
| | | m_AllowClick = true;
|
| | | if (!m_AllowDragDrop)
|
| | | {
|
| | | return;
|
| | | }
|
| | | m_OnPress = true;
|
| | | }
|
| | |
|
| | | public void OnPointerEnter(PointerEventData eventData)
|
| | | {
|
| | | m_AllowClick = true;
|
| | | }
|
| | |
|
| | | public void OnPointerExit(PointerEventData eventData)
|
| | | {
|
| | | m_AllowClick = false;
|
| | | }
|
| | |
|
| | | public void OnPointerUp(PointerEventData eventData)
|
| | | {
|
| | | var position = Input.mousePosition;
|
| | | if (!draging && m_AllowClick)
|
| | | {
|
| | | if (onClick != null)
|
| | | {
|
| | | onClick(data);
|
| | | }
|
| | | }
|
| | | m_OnPress = false;
|
| | | }
|
| | |
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (m_OnPress && !draging)
|
| | | {
|
| | | m_Time += Time.deltaTime;
|
| | | if (m_Time > dragDelay)
|
| | | {
|
| | | dragData = data;
|
| | | draging = true;
|
| | | m_Time = 0;
|
| | | m_OnPress = false;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9210057b649c7f94ca264627a90ab320 |
| | | timeCreated: 1561516753 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |