4736 子 【1.3】【前端】神兵系统修改 / 【1.3】神兵系统界面逻辑修改
5个文件已删除
279个文件已修改
6个文件已添加
| | |
| | | {
|
| | | public partial class GodWeaponConfig : ConfigBase, IConfigPostProcess
|
| | | {
|
| | | private static Dictionary<string, GodWeaponConfig> m_GodWeaponCfgs = new Dictionary<string, GodWeaponConfig>();
|
| | |
|
| | | private static Dictionary<int, List<GodWeaponConfig>> m_GodWeaponList = new Dictionary<int, List<GodWeaponConfig>>();
|
| | | static Dictionary<int, Dictionary<int, GodWeaponConfig>> m_GodWeaponDict = new Dictionary<int, Dictionary<int, GodWeaponConfig>>();
|
| | | static Dictionary<int, List<GodWeaponConfig>> m_GodWeaponList = new Dictionary<int, List<GodWeaponConfig>>();
|
| | |
|
| | | public void OnConfigParseCompleted()
|
| | | {
|
| | | m_GodWeaponCfgs.Add(StringUtility.Contact(Type, Lv).ToString(), this);
|
| | | Dictionary<int, GodWeaponConfig> dict;
|
| | | if (!m_GodWeaponDict.TryGetValue(Type, out dict))
|
| | | {
|
| | | dict = new Dictionary<int, GodWeaponConfig>();
|
| | | m_GodWeaponDict.Add(Type, dict);
|
| | | }
|
| | | if (!dict.ContainsKey(Lv))
|
| | | {
|
| | | dict.Add(Lv, this);
|
| | | }
|
| | |
|
| | | List<GodWeaponConfig> list = null;
|
| | | m_GodWeaponList.TryGetValue(Type, out list);
|
| | | if (list == null)
|
| | | if (!m_GodWeaponList.TryGetValue(Type, out list))
|
| | | {
|
| | | list = new List<GodWeaponConfig>();
|
| | | list.Add(this);
|
| | | m_GodWeaponList.Add(Type, list);
|
| | | }
|
| | | else
|
| | | {
|
| | | list.Add(this);
|
| | | }
|
| | | list.Add(this);
|
| | | }
|
| | |
|
| | | public static GodWeaponConfig GetGodWeaponCfgByTypeLv(int type, int lv)
|
| | | public static GodWeaponConfig GetConfig(int type, int level)
|
| | | {
|
| | | GodWeaponConfig cfg = null;
|
| | | m_GodWeaponCfgs.TryGetValue(StringUtility.Contact(type, lv), out cfg);
|
| | | return cfg;
|
| | | Dictionary<int, GodWeaponConfig> dict;
|
| | | if (m_GodWeaponDict.TryGetValue(type, out dict))
|
| | | {
|
| | | if (dict.ContainsKey(level))
|
| | | {
|
| | | return dict[level];
|
| | | }
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | | public static List<GodWeaponConfig> GetGodWeaponCfgByType(int type)
|
| | | public static List<GodWeaponConfig> GetConfigs(int type)
|
| | | {
|
| | | List<GodWeaponConfig> list = null;
|
| | | m_GodWeaponList.TryGetValue(type, out list);
|
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using Snxxz.UI; |
| | | |
| | | // A3 1D 神兵等级信息 #tagMCGodWeaponLVList |
| | | |
| | | |
| | | |
| | | public class DTCA31D_tagMCGodWeaponLVList : DtcBasic |
| | | { |
| | | |
| | | public override void Done(GameNetPackBasic vNetPack) |
| | | { |
| | | |
| | | base.Done(vNetPack); |
| | | |
| | | HA31D_tagMCGodWeaponLVList vNetData = vNetPack as HA31D_tagMCGodWeaponLVList; |
| | | if (vNetData != null) { |
| | | ModelCenter.Instance.GetModel<MagicianModel>().OnMagicianChange(vNetData); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | |
|
| | | // A3 1D 神兵等级信息 #tagMCGodWeaponLVList
|
| | |
|
| | |
|
| | |
|
| | | public class DTCA31D_tagMCGodWeaponLVList : DtcBasic
|
| | | {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HA31D_tagMCGodWeaponLVList vNetData = vNetPack as HA31D_tagMCGodWeaponLVList;
|
| | | if (vNetData != null) {
|
| | | ModelCenter.Instance.GetModel<MagicianModel>().UpdateGodWeaponInfo(vNetData);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: dc4d13d8870f71a41837b821c9d0e063 |
| | | folderAsset: yes |
| | | timeCreated: 1542264228 |
| | | timeCreated: 1542351350 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9bca4d2d0a75eb8419f3ab24934c8c04 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 495eacb1a3d0b034ca51e508cbb19f7c |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2065c4c9bc3ffd14d98966c6b1315d52 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1fb79188382b2014b939fda5d368683c |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 915ce2164d3dc4247bda481de7cdb92e |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c36929f636896944082d25b04000a86a |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1661af4903f11f84491a15cc007044fb |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: aae8e2eebd63da44eb36909b916a0016 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 762acc8a4e53b704dbda04c1ac741fce |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7875680f266c4b446a1f5349e642712a |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 148477a4bd09bb7479dfc5e4fd5dcc3a |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c713126d3deaa364b8d674f4ed209115 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f0ca42c20a8592449944fc9e9098ca70 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: be22e0f1bc74cb4428f4ce5929acf361 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5f3d3090981c7434ebc2638fe4e05dd8 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f36141a7436e3d74080ad0203aea4a14 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5afd2202ba09de342b55c548105fde28 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5658f5508f62eee499f11fbc6277d61d |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2c241f6980d7e24428358d9062fefaa4 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 89a09c8cfe70d214790770dc4f3a1bcb |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 377fded8435dd8746bb3747a802898e6 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cd1bc873e036ef5468e0878b489d9a5f |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: bc3a6ac4d8396354f87c1369443b6077 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cafb51f174b100744b14bcf040441103 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a0deb8c657491eb4691422a6a158aba6 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ffb294ffef916234b8b3cdbf221b76af |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a07bc071dfe73f94e938d6cda9b87bcc |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(EquipWashModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 32, 22, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 32, 23, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "washGroups3", _g_get_washGroups3); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isWashUI", _g_get_isWashUI); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMustAddAttr", _g_get_isMustAddAttr); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "mustWashMatId", _g_get_mustWashMatId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "washPlacelist", _g_get_washPlacelist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "washProlist", _g_get_washProlist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "washEquipRedPointlist", _g_get_washEquipRedPointlist); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_mustWashMatId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | EquipWashModel gen_to_be_invoked = (EquipWashModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mustWashMatId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_washPlacelist(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 623e9c148cedfda4ababa545a7b03f03 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4690ce8be3954b841b6fbd113fd5f58a |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 347034b75b199244d856a993afc06fb9 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 29e373d937dbee04b822694daf0f928e |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e58baf63b574e6842a09df5a1aaceb8d |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4ad0170db916f1644bfcded04b399d83 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 560ace05dec6acf45be91571fd0fb7c9 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8d368cb08ab82314a9bb871658d10503 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 65d1dd4971602d24e98412c8dc425450 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f706693bd3f146d43be25ead431c4515 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 748cbc178f84ab142aec52f83af22c71 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 232e6a8726b7c0d46a19e380a1b2f252 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a87b00137a937f14c8e551b2e8e766e9 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d74c19a9ef52417439d4c5ff477ff697 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 87535853a0aa8b840b306b47f52f093b |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 343eec3eb36848e47bb12dc662114da4 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f4b6afde818d56344ab4fcd777bbc05f |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8446c8274c45bc141904e5534264f611 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9f2ccc87b5f2b5842a5ff3866118f847 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5eb00ac8d64a8474fa0cdc475ef9fe06 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f86cdb737ba4f414d84371fce16ae505 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| 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 IceLodeStarAwardClassWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(IceLodeStarAwardClass); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Index", _g_get_Index); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Star", _g_get_Star); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MinLv", _g_get_MinLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxLv", _g_get_MaxLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemID", _g_get_ItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ItemCount", _g_get_ItemCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsBind", _g_get_IsBind); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Type", _g_get_Type); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "Index", _s_set_Index); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "Star", _s_set_Star); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "MinLv", _s_set_MinLv); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaxLv", _s_set_MaxLv); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemID", _s_set_ItemID); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "ItemCount", _s_set_ItemCount); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsBind", _s_set_IsBind); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "Type", _s_set_Type); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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) |
| | | { |
| | | |
| | | IceLodeStarAwardClass gen_ret = new IceLodeStarAwardClass(); |
| | | 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 IceLodeStarAwardClass constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Index(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Index); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Star(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Star); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_MinLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MinLv); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_MaxLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MaxLv); |
| | | } 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); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)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_ItemCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ItemCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsBind(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.IsBind); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Type(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Type); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_Index(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.Index = 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 _s_set_Star(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.Star = 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 _s_set_MinLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.MinLv = 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 _s_set_MaxLv(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.MaxLv = 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 _s_set_ItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.ItemID = 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 _s_set_ItemCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.ItemCount = 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 _s_set_IsBind(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.IsBind = 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 _s_set_Type(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | IceLodeStarAwardClass gen_to_be_invoked = (IceLodeStarAwardClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.Type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f1f73ee01fd1cb14da8a61a7b9a8d8a1 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a91bd3f4f368a7d4482500dd452d9462 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fe55e317a63d9d046b37f8755f100d59 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3c33b74b6edfbfc44a87d2f65844cc06 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 31813e997fa40504085a93241ecf39af |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f08a2aa9993cb164292003fd4cb0507c |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f171fe4b30e8cbb449c81d907092d059 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 84fd0098bd71cc94ab8b76feb3b07e84 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 31aeec5d2e730bd438508868277271b0 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 081cc7c8529502e4a9488ff986938475 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4ba3d1adf21ff4749915e9dd4c7faf3c |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9f9ef2f9078750e4b851f51816d10e20 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0b7c187dbc2eb2a4686a3e6f24b8cd32 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1ec0952f2fc5896458c90be785059025 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0725085cbd1dafb48bf83eb448d6985c |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fa685080703f55c4b8a86f246628d3bc |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 83a198bf9ab768e4f84d33a3c57f53f4 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7920c927a7b0e8749be4014a1b1c4af9 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 710c4cac41b80ef4082890302218ddef |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3cbce8193650cb64dabe0f96d93d0f32 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fbf3f5acda9b8ad4db097122ed536963 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c87a75cb09678e241b16f6e122f54c85 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2daf57db2d7158647b432c7f7a37b486 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 181f2b4108f709c4483d71e500c81446 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 11e48c10a345a30448518d20ebca7f6d |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6c7d8104e4a49bc4e9f98728e30a6dce |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2f5b8bff7753a7643b91e6a65e9e774a |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 75e6ce9c0258b414288d8fb0ffda2803 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c293a4ee67cf15e489ebb7606e745a03 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9d5e753ffffe5ca4b947c9cdfa83ded1 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6269357ea56c6e748af02d799d6f27be |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a632dbf8f22eec34786ab52dfdbc4381 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 595c14cb4fba0324e80472e3032782be |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b28dd16e04195c84ab4833cc1ccfd94e |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e50c8bad33b56d040a56afdbb2ecd8e2 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5538d7df0ca6fcf47abd5c2bca677895 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a44dd779953aec84b884d1f38d0605df |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c4132a0e5cd2092429d343c852a13b68 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 120316c5cdc7de043bbc189155484db1 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a4884d37bf839724c9ab20336c4b09cb |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6d8c31a298652eb4d818800107fd7df7 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 908191fe4302a9a489f6da35c9d4c5d7 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5b059422575e16a459f1ae0ab28a2226 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 44f28933228c8194083e8005d2c502b8 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8d9fa15cfe160b44a9fd38e858413e75 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0401def7bb5f31e47b77810d41d7a10a |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4f1769150122c304ca535b79bf11ba34 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dfce7c05f3e95f047a5e87ae65347d5c |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 07542c6aa73cc84488d77b79733e2216 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b9e3df41978b9484283de73d7c4c3663 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a3733bc595897114d8e5cd3b26f986e5 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e555d0533f20d774ca399ff463909f74 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 15831705ac9712842b2f8f1d87bdf289 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 838c94188e7c66e48a88d4b3b7065436 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1809bccd2af83c04f9ed42c7136fed7d |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: efa4b9f02b338a544bfc089781065a6e |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 52da2b77b48102a43a3e0eb3b1c3f145 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5d8319c3d7861b740b45a1f31af88563 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1c5881ecc36c9824281f3941373d746f |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c18887ca2e18c514f9e5542d8e8d6c54 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e095092e787b4814da878d04c605f6b7 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 441f034c97155aa4bba79775cb13daf6 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1a7d6590b42d35f49925d46cb11be65d |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 28c7bd4534d6b8248ad575869efa1123 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4e55023b9f9d58a45a554c76d3fc6333 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 79ea456dc8151c64ea5103dd0accf976 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b72aee3aa47907747825d1ad842bf05a |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 94c941c9e59002e4697b9d4c2ce6d468 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e6ae1d0ca1c923c47a2f0750d5732c12 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1a8a25cf6fee9a946a0dec5e3966f0c5 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8bf8db148194b02439365b2df53ad466 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 734d0c272185f814faf87870cfd8b4d9 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3066b46ec7367a34caac3454b5faadfd |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: eb1b5477a86b8fb4eb9eac9904813791 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6a222d4936d8b00418bcc2de9b1fe615 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e072616e07ae3db408dc6673d30f5221 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: edd2db0c3ad83764aaab0c28c43ce8bd |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d359f05ad9a77b04b83b9a2104721809 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6f3f3aaa83742ae488ac69f9ba61a904 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 54509c502bbe9374d8ce7234abe50ca4 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4ab9d241486af3547bf345a4c32648fc |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: bcdd7faa56987c94aa10e8c58948f7ac |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0e3cd68d67489a24cbbb39efadfce7c3 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 049d31d39e1f34f4a973a2805af57d0f |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 67aad47f12244024195a2c52b8d42dae |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9809c6175235fde499db4ca6c7dcfd3b |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c438977affec34f44b680fcbc758eecb |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 03811f0d996d20c4aa5cf2ae59a21253 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 661199f17d6f90a42b0a44950c9beedf |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 72a7fbe3b85dcba449ecdaadeefe1caa |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1d52d1fa523a4dd4983d7b5f6f4c380f |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a74a45efc57083f4a9c21ba7e342e5a2 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 39074b6479d13104e84a9a273df449ea |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cf921bcc50640e148a3cbc9b57d790c0 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.MagicianModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 16, 8, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 8, 5); |
| | | |
| | | 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, "GetLvUpItemByType", _m_GetLvUpItemByType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLevelUpItemByType", _m_GetLevelUpItemByType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedPoint", _m_UpdateRedPoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanTemperMagician", _m_CanTemperMagician); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRedpointLightByType", _m_GetRedpointLightByType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TemperMagician", _m_TemperMagician); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMagicianChange", _m_OnMagicianChange); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "HammerGodWeapon", _m_HammerGodWeapon); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGodWeaponInfo", _m_UpdateGodWeaponInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetUnlockSkill", _m_TryGetUnlockSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMagicianData", _m_GetMagicianData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetGodWeaponSkills", _m_TryGetGodWeaponSkills); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGodWeaponInfo", _m_GetGodWeaponInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponMaxLevel", _m_IsGodWeaponMaxLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponTemperItem", _m_IsGodWeaponTemperItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponHammerItem", _m_IsGodWeaponHammerItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponUnlock", _m_IsGodWeaponUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyUnlockCondition", _m_SatisfyUnlockCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsCondition", _m_ContainsCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponMaxLevelByItem", _m_IsGodWeaponMaxLevelByItem); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRefresh", _e_OnRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectUpdate", _e_onSelectUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "godWeaponUpdate", _e_godWeaponUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "magicianTypes", _g_get_magicianTypes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponTypes", _g_get_godWeaponTypes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponIcons", _g_get_godWeaponIcons); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "magicianRedpoint", _g_get_magicianRedpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponSkillDict", _g_get_godWeaponSkillDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectItemIndex", _g_get_selectItemIndex); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "gotoType", _g_get_gotoType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpointDict", _g_get_redpointDict); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "godWeaponSkillDict", _s_set_godWeaponSkillDict); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectType", _s_set_selectType); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectType", _s_set_selectType); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "godWeaponSkillDict", _s_set_godWeaponSkillDict); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectItemIndex", _s_set_selectItemIndex); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "gotoType", _s_set_gotoType); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpointDict", _s_set_redpointDict); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetLvUpItemByType(RealStatePtr L) |
| | | static int _m_GetLevelUpItemByType(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int[] gen_ret = gen_to_be_invoked.GetLvUpItemByType( _type ); |
| | | int[] gen_ret = gen_to_be_invoked.GetLevelUpItemByType( _type ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CanTemperMagician(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CanTemperMagician( ); |
| | | 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_GetRedpointLightByType(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TemperMagician(RealStatePtr L) |
| | | static int _m_HammerGodWeapon(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.TemperMagician( _type ); |
| | | gen_to_be_invoked.HammerGodWeapon( _type ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnMagicianChange(RealStatePtr L) |
| | | static int _m_UpdateGodWeaponInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | { |
| | | HA31D_tagMCGodWeaponLVList _vNetData = (HA31D_tagMCGodWeaponLVList)translator.GetObject(L, 2, typeof(HA31D_tagMCGodWeaponLVList)); |
| | | HA31D_tagMCGodWeaponLVList _package = (HA31D_tagMCGodWeaponLVList)translator.GetObject(L, 2, typeof(HA31D_tagMCGodWeaponLVList)); |
| | | |
| | | gen_to_be_invoked.OnMagicianChange( _vNetData ); |
| | | gen_to_be_invoked.UpdateGodWeaponInfo( _package ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetMagicianData(RealStatePtr L) |
| | | static int _m_TryGetGodWeaponSkills(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.Dictionary<int, int> _skills; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetGodWeaponSkills( _type, out _skills ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _skills); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetGodWeaponInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | Snxxz.UI.MagicianData gen_ret = gen_to_be_invoked.GetMagicianData( _type ); |
| | | Snxxz.UI.GodWeaponInfo gen_ret = gen_to_be_invoked.GetGodWeaponInfo( _type ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsGodWeaponTemperItem(RealStatePtr L) |
| | | static int _m_IsGodWeaponHammerItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | int __type = LuaAPI.xlua_tointeger(L, 2); |
| | | int __itemId = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsGodWeaponTemperItem( __type, __itemId ); |
| | | bool gen_ret = gen_to_be_invoked.IsGodWeaponHammerItem( __type, __itemId ); |
| | | 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_IsGodWeaponUnlock(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsGodWeaponUnlock( _type ); |
| | | 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_SatisfyUnlockCondition(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyUnlockCondition( _type ); |
| | | 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_ContainsCondition(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ContainsCondition( _type ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_magicianTypes(RealStatePtr L) |
| | | static int _g_get_godWeaponTypes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.magicianTypes); |
| | | translator.Push(L, gen_to_be_invoked.godWeaponTypes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.godWeaponIcons); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectType); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.godWeaponSkillDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectType); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_godWeaponSkillDict(RealStatePtr L) |
| | | static int _s_set_selectType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.godWeaponSkillDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)); |
| | | gen_to_be_invoked.selectType = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectType(RealStatePtr L) |
| | | static int _s_set_godWeaponSkillDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectType = LuaAPI.xlua_tointeger(L, 2); |
| | | gen_to_be_invoked.godWeaponSkillDict = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, int>>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_OnRefresh(RealStatePtr L) |
| | | static int _e_onSelectUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.OnRefresh += gen_delegate; |
| | | gen_to_be_invoked.onSelectUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.OnRefresh -= gen_delegate; |
| | | gen_to_be_invoked.onSelectUpdate -= 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.MagicianModel.OnRefresh!"); |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.MagicianModel.onSelectUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_godWeaponUpdate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)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.godWeaponUpdate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.godWeaponUpdate -= 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.MagicianModel.godWeaponUpdate!"); |
| | | return 0; |
| | | } |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 896fb0af0ecfcaa41b1bd6202498fa0c |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 388ea3791d075f547b761cd154777f5f |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 46773327ca98f1d49bea08c28e956030 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4f11afc77bfbb1449af03b3fbd7f1198 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7e706050ef9c0c54cb6284ef44b7dca9 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 765623a3073785b46887a1562608746e |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6744cd20164e7ea4a8c3213410162e0d |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9716786cba8ca934481dd709db032046 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| 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 SnxxzUIMysticalPurchaseModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.MysticalPurchaseModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 5, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDefaultSelectSaleTime", _m_SetDefaultSelectSaleTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PresentFlashShopActivityClose", _m_PresentFlashShopActivityClose); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetFlashShop", _m_ResetFlashShop); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectFlashSaleTime", _m_UpdateSelectFlashSaleTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOperationFlashRushToBuy", _m_GetOperationFlashRushToBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashSaleAppointmentInfo", _m_UpdateFlashSaleAppointmentInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFullSeverBuyInfo", _m_UpdateFullSeverBuyInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFullServerBuyCntById", _m_GetFullServerBuyCntById); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendFlashSaleAppointment", _m_SendFlashSaleAppointment); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetActivityState", _m_GetActivityState); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsPush", _m_CheckIsPush); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDayRemind", _m_SetDayRemind); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlreadyOpenSaleTime", _m_SetAlreadyOpenSaleTime); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePresentFlashShopCloseEvent", _e_UpdatePresentFlashShopCloseEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSelectSaleTimeEvent", _e_UpdateSelectSaleTimeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAllAppointmentEvent", _e_UpdateAllAppointmentEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAppointmentEvent", _e_UpdateAppointmentEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFullSeverBuyEvent", _e_UpdateFullSeverBuyEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentFlashShop", _g_get_presentFlashShop); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "flashRushToBuyRedpoint", _g_get_flashRushToBuyRedpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "flashRushToBuyRedpoint", _s_set_flashRushToBuyRedpoint); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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.MysticalPurchaseModel gen_ret = new Snxxz.UI.MysticalPurchaseModel(); |
| | | 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.MysticalPurchaseModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnBeforePlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPlayerLoginOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnPlayerLoginOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnInit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetDefaultSelectSaleTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SetDefaultSelectSaleTime( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PresentFlashShopActivityClose(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.PresentFlashShopActivityClose( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ResetFlashShop(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ResetFlashShop( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateSelectFlashSaleTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _dayIndex = LuaAPI.xlua_tointeger(L, 2); |
| | | int _timeIndex = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.UpdateSelectFlashSaleTime( _dayIndex, _timeIndex ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetOperationFlashRushToBuy(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | Snxxz.UI.OperationFlashRushToBuy gen_ret = gen_to_be_invoked.GetOperationFlashRushToBuy( ); |
| | | 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_UpdateFlashSaleAppointmentInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HAA18_tagMCFlashSaleAppointmentInfo _appointmentInfo = (HAA18_tagMCFlashSaleAppointmentInfo)translator.GetObject(L, 2, typeof(HAA18_tagMCFlashSaleAppointmentInfo)); |
| | | |
| | | gen_to_be_invoked.UpdateFlashSaleAppointmentInfo( _appointmentInfo ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateFullSeverBuyInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA906_tagGCStoreServerBuyCntInfo _buyCntInfo = (HA906_tagGCStoreServerBuyCntInfo)translator.GetObject(L, 2, typeof(HA906_tagGCStoreServerBuyCntInfo)); |
| | | |
| | | gen_to_be_invoked.UpdateFullSeverBuyInfo( _buyCntInfo ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetFullServerBuyCntById(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _goodsId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetFullServerBuyCntById( _goodsId ); |
| | | 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_SendFlashSaleAppointment(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _shopGuid = LuaAPI.xlua_tointeger(L, 2); |
| | | int _state = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.SendFlashSaleAppointment( _shopGuid, _state ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetActivityState(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _seconds; |
| | | Snxxz.UI.OperationTime _operationTime; |
| | | Snxxz.UI.OperationFlashRushToBuy.FlashSaleShop _saleShop; |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel.FlashRushToBuySate gen_ret = gen_to_be_invoked.GetActivityState( out _seconds, out _operationTime, out _saleShop ); |
| | | translator.Push(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _seconds); |
| | | |
| | | translator.Push(L, _operationTime); |
| | | |
| | | translator.Push(L, _saleShop); |
| | | |
| | | |
| | | |
| | | |
| | | return 4; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CheckIsPush(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.OperationFlashRushToBuy.FlashSaleShop _saleShop; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CheckIsPush( out _saleShop ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _saleShop); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetDayRemind(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SetDayRemind( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetAlreadyOpenSaleTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SetAlreadyOpenSaleTime( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_priorityOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.priorityOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsAdvance(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_presentFlashShop(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.presentFlashShop); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_flashRushToBuyRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.flashRushToBuyRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_flashRushToBuyRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.flashRushToBuyRedpoint = (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))] |
| | | static int _e_UpdatePresentFlashShopCloseEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdatePresentFlashShopCloseEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdatePresentFlashShopCloseEvent -= 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.MysticalPurchaseModel.UpdatePresentFlashShopCloseEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateSelectSaleTimeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateSelectSaleTimeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateSelectSaleTimeEvent -= 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.MysticalPurchaseModel.UpdateSelectSaleTimeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateAllAppointmentEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateAllAppointmentEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateAllAppointmentEvent -= 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.MysticalPurchaseModel.UpdateAllAppointmentEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateAppointmentEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateAppointmentEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateAppointmentEvent -= 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.MysticalPurchaseModel.UpdateAppointmentEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateFullSeverBuyEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.UpdateFullSeverBuyEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateFullSeverBuyEvent -= 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.MysticalPurchaseModel.UpdateFullSeverBuyEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onStateUpate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.MysticalPurchaseModel gen_to_be_invoked = (Snxxz.UI.MysticalPurchaseModel)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.onStateUpate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onStateUpate -= 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.MysticalPurchaseModel.onStateUpate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0f0947775c3397d4e9ee787fd92082d7 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3120188bfe20d184c9233a2772fc4a4e |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4c03a7f30f91cac4c8eeb90295fd0f11 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9c994a2f984e78341a33603617680940 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 090f95406d7c77546b05b13378c42a39 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a0e6de8162303ab4c85148616f20f2f2 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b21b2c4766772f64a8daa87c8a5d2d27 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 805ea871fcb8c1543837c6b9d507e89a |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4184c6949baa40d449ad751f9854f8de |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.OperationTimeHepler); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 26, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMultipleExp", _m_UpdateMultipleExp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateConsumeRebate", _m_UpdateConsumeRebate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAccumulateRecharge", _m_UpdateAccumulateRecharge); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashSale", _m_UpdateFlashSale); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashRushToBuy", _m_UpdateFlashRushToBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMysticalPurchase", _m_UpdateMysticalPurchase); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWishingWellInfo", _m_UpdateWishingWellInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGiftPackage", _m_UpdateGiftPackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateBossReborn", _m_UpdateBossReborn); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateMysticalPurchase(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HAA17_tagMCFlashSaleInfo _package = (HAA17_tagMCFlashSaleInfo)translator.GetObject(L, 2, typeof(HAA17_tagMCFlashSaleInfo)); |
| | | |
| | | gen_to_be_invoked.UpdateMysticalPurchase( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateWishingWellInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e0458a09f6f820d478da2e8608016ed8 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 09173b19584359c40a96db31bc369df7 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fe4e803dd1f904748b7dffe607094fa5 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d9cdedbfa7439a84da13341ccd727b9c |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5b587077093835c46bea84ac4679c0c8 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 37ed0c88e829dcc45a1a1ea464d9abef |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b7bee5b188cf848409e175fe4bfbbb56 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a23ae4343691c594ab06e68b8982e2c2 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 06b365e601fb4be4b9228779ec61bb25 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1071ba590d7b0742b423ca2d0cf18b5 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dec97c43a31de7644903f6ea6bb0a593 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: baf0f23b60be72d4da3c3f1ee98f9e7b |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 28a383d36f8441a439791368bbaa997f |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f8571c6f821dcaf46ac5255fae41c776 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 84950daff4fd42243a54c3ca7a60c32f |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b63c7c8d4f45b7d4e9e9b208a10b0fdd |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3485703792091aa45be9a6833e9ea912 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f81a640a860bfb54186dbef05c05f746 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a9475d3895c7e614e84497678697e802 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1f7fa3d3fbe37644cbc99f9a592f014f |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b3ba5f66d94a1014e9a6f24795af7df8 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e402d67ac516aad4bae8c85ee3ee2e97 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f8ea132119021784cb510543b59f47b2 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3ff6611ea24d78f46ad736c1a8ad6eb2 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 250b9d14d9ed05942940e19c9aebebc2 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4e20f35c8478f5041b12affc657abe30 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 56d677cb19ce21c489c1714382e03e55 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 538c156c270d40f4ca12913cc33a738a |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 908ec242bc44d56479e04689b480a86a |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c0d574567fac729488197d97f5156c36 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c637f59cbf2f2434cad055d6310ccf17 |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8d4a48c51d317784bbfe7b166ea66808 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 452506c54124914429d7253d293d88a7 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 70c5135768e11d14e84238563ff4cc89 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7a8a5b63386dfb04f840f71c1a4e0a0f |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4c9515b57ae61ec4eb16e129a7bbd0be |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5a63c0acabba7bd4fab49770cae7c6ad |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 93437921045e95f42a1acffe56b3f77b |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dc725b12aef03de4ca15812710a8653d |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f89b526ca3d98864aadba11ebe90fa26 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 198424cb419282a4eb5066aceb054e3b |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d13901462bdad36488284d6104e72a4a |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f7a4bad41434b5b4d8dddab337f5f573 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 666d79c8ed5f62f41ac27086f49d335d |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ebbb74276995b97429f6f1bd11a8770e |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e40d28084961a044793db8f09160464a |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2f0f90112c20c9b4392a05fed3eccda9 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dff502b2335bab34cb58954464eeda7c |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dc0acfe30aa585a48a1a3e24d7a71f92 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 913320c5395282e4da3f313b78d3222b |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 50bd4480ffcbbe148b4d86ef70fb0866 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e134195e8cd3ca345b5a9c4a049bf7a9 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 56afe689e71743a42a1ca6e9a1fb1c05 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 02415f383fa2d0849b009dec4dfabc31 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 75ac574ee912c7c41a1acbca24ffde2a |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 40e2a99bae8ec6e44b43bc11c7e2774e |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 16508971ad7559743b5f236575b38bcb |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 901654013191c7f40b70ff0972ab349f |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ca7e287147e144743ad61f7b49874788 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 67f3d32132b68e5438a4914f98268fae |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 81e2a637e649cc3468b89b5740a7c266 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 06b4f981e4281e84f8f16332504a376e |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 72284f1741151a949a6e0567aafc3753 |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 66d55f7b43031804bb8d6ba6dd8a2501 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351357 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a2f3cfb00ab96534391209c9853463e8 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6f08ad16372eac64cb7efffd2737219f |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 9eb3402160686764089dc6279e2fa298 |
| | | timeCreated: 1542264238 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 09e59d594beaeae49b3a658391140e46 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0b7dea3769d841140b9a51f5135f1d62 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8dd14aafd4cff1943bde7ec5acdfe872 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b6fa36db720ddd74ba3476555b39839a |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a4c40633de9f3564cad1ce0e78061320 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a2f5c386f05d6c84bafb0fe5c9480d80 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 04369f2729aa9ed4bbad47efcbeedb6a |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4fd9a22dba0b6cb478727fc970344303 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e3cf32ad984839346b4b501af7cb43b6 |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 29ec940883c598d4591248ba65b0f9d2 |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 43577b1438879d444b53ceae6f024fdc |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7d10450be9a788a4ea008360dc55c01b |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5182be2698c20ca408bbd290fc1cf8fe |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 90518b0393b6e8b46b65b58631cbfffd |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351360 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7415a58abef3842439348fbcf95bacab |
| | | timeCreated: 1542264236 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4c08cd6cc4b94ea49919300480a20205 |
| | | timeCreated: 1542264233 |
| | | timeCreated: 1542351355 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3c34141100e1b704dbe995ad5fe50ad6 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 52764894b667ee84ab9d4682c7fcc3b7 |
| | | timeCreated: 1542264234 |
| | | timeCreated: 1542351356 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: da197958de72f9a43a93aab20e613f41 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a9bcca0d6a099154a96263eb4877569d |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351361 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cd64f50f5cbb1b34b98c3354afe540e3 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: eaabaebc8b0bfbc4c9a208b686d23b4a |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cc441f23f2dc455468842f442b3ed200 |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f0b5cc7ada18f2e4790dd9ac6c764772 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: aa5e2a628bf6e8d48a31775cb020d1e1 |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: dfaf4d57d9985a545ac490f61135dcbc |
| | | timeCreated: 1542264241 |
| | | timeCreated: 1542351364 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 34ce20c88b695754ba0a2d6ab281a8c6 |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8caef6662e7b22843ab215fcab3e8403 |
| | | timeCreated: 1542264237 |
| | | timeCreated: 1542351359 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 40ae69aab76fcfe4dbe23c68248da28f |
| | | timeCreated: 1542264232 |
| | | timeCreated: 1542351354 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fb7f8f9da10516b41aceb300d781c501 |
| | | timeCreated: 1542264243 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1607f343310c34d498778541b3f9ca3f |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 70d5423a052d756449c0aceac6627a06 |
| | | timeCreated: 1542264235 |
| | | timeCreated: 1542351358 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 31aec854cb59850438b135c280464adf |
| | | timeCreated: 1542264231 |
| | | timeCreated: 1542351353 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0f9c3c0e20bf46f4094882ba3ca37657 |
| | | timeCreated: 1542264230 |
| | | timeCreated: 1542351352 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ab4d3295967f62a4cb25d3be104e027b |
| | | timeCreated: 1542264239 |
| | | timeCreated: 1542351362 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 04bb6025230e79a4dbfef37c9e8e1233 |
| | | timeCreated: 1542264229 |
| | | timeCreated: 1542351351 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f020f5fb6527cb64a97e02ba662346ea |
| | | timeCreated: 1542264242 |
| | | timeCreated: 1542351365 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonModel), SnxxzUIDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TrialDungeonModel), SnxxzUITrialDungeonModelWrap.__Register); |
| | | translator.DelayWrapLoader(typeof(IceLodeStarAwardClass), IceLodeStarAwardClassWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TrialDungeonModel), SnxxzUITrialDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyBossModel), SnxxzUIFairyBossModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(SysNotifyMgr), SysNotifyMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FunctionalGuideCenter), SnxxzUIFunctionalGuideCenterWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FunctionalGuideCenter), SnxxzUIFunctionalGuideCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.NewBieCenter), SnxxzUINewBieCenterWrap.__Register); |
| | | |
| | |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MonthlyInvestmentModel), SnxxzUIMonthlyInvestmentModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MysticalPurchaseModel), SnxxzUIMysticalPurchaseModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OSGiftModel), SnxxzUIOSGiftModelWrap.__Register); |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(SettingEffectMgr), SettingEffectMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(SettingMgr), SettingMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SystemSetting), SystemSettingWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(TaiChiModel), TaiChiModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeUtility), TimeUtilityWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(TransformExtension), TransformExtensionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UIHelper), UIHelperWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(UIUtility), UIUtilityWrap.__Register); |
| | | |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c766aff6763d64444b7dbd699c35024f |
| | | timeCreated: 1542264240 |
| | | timeCreated: 1542351363 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | <type fullname="Snxxz.UI.Dungeon" preserve="all"/> |
| | | <type fullname="Snxxz.UI.DungeonLiquidModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.DungeonModel" preserve="all"/> |
| | | <type fullname="IceLodeStarAwardClass" preserve="all"/> |
| | | <type fullname="Snxxz.UI.TrialDungeonModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.FairyBossModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.FairyGrabBossModel" preserve="all"/> |
| | |
| | | <type fullname="Snxxz.UI.OpenServerActivityCenter" preserve="all"/> |
| | | <type fullname="InSevenDayModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.MonthlyInvestmentModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.MysticalPurchaseModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OSGiftModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OSRedEnvelopeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OpenServerActivityNotifyModel" preserve="all"/> |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0ad96c6c44d35fa4ab61ba176df0e884 |
| | | timeCreated: 1542264244 |
| | | timeCreated: 1542351366 |
| | | licenseType: Pro |
| | | TextScriptImporter: |
| | | userData: |
| | |
| | | var _type = 0;
|
| | | if (_dict.ContainsKey("type") && int.TryParse(_dict["type"], out _type))
|
| | | {
|
| | | var _cfg = GodWeaponConfig.GetGodWeaponCfgByTypeLv(_type, 1);
|
| | | var _cfg = GodWeaponConfig.GetConfig(_type, 1);
|
| | | if (_cfg != null)
|
| | | {
|
| | | return _cfg.Name;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | var _beforeConfig = GodWeaponConfig.GetGodWeaponCfgByTypeLv(_type, _beforeLv);
|
| | | var _beforeConfig = GodWeaponConfig.GetConfig(_type, _beforeLv);
|
| | | List<int> _beforeProperties = new List<int>();
|
| | | if (_beforeConfig != null)
|
| | | {
|
| | |
| | | lastPropertyDict.Add(_beforeConfig.AttrType[i], _beforeConfig.AttrNum[i]);
|
| | | }
|
| | | }
|
| | | var config = GodWeaponConfig.GetGodWeaponCfgByTypeLv(_type, currentLv);
|
| | | var config = GodWeaponConfig.GetConfig(_type, currentLv);
|
| | | for (int i = 0; i < config.AttrType.Length; i++)
|
| | | {
|
| | | var _index = _beforeProperties.IndexOf(config.AttrType[i]);
|
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using Snxxz.UI;
|
| | | using TableConfig;
|
| | |
|
| | | namespace EnhancedUI.EnhancedScroller
|
| | | {
|
| | | public class GodWeaponCell : CellView
|
| | | {
|
| | | [SerializeField] Text m_GodWeaponLevelTxt;
|
| | | [SerializeField] RectTransform m_UnlockRect;
|
| | | [SerializeField] Text m_LockDisplay;
|
| | | [SerializeField] Image m_GodWeaponBG;
|
| | | [SerializeField] Image m_GodWeaponIcon;
|
| | | [SerializeField] Text m_Level;
|
| | | [SerializeField] RectTransform m_ContainerUnlock;
|
| | | [SerializeField] Text m_Condition;
|
| | | [SerializeField] Image m_SelectBottom;
|
| | | [SerializeField] Image m_Icon;
|
| | | [SerializeField] Text m_GodWeaponName;
|
| | | [SerializeField] RedpointBehaviour m_Redpoint;
|
| | |
|
| | |
| | | }
|
| | | public void Display(int _type)
|
| | | {
|
| | | m_GodWeaponBG.SetSprite(model.selectType == _type ? "ListBtn_Select" : "ListBtn_UnSelect");
|
| | | switch ((MagicianType)_type)
|
| | | {
|
| | | case MagicianType.LifeMag:
|
| | | m_GodWeaponName.text = Language.Get("L1126");
|
| | | break;
|
| | | case MagicianType.AttackMag:
|
| | | m_GodWeaponName.text = Language.Get("L1127");
|
| | | break;
|
| | | case MagicianType.CritMag:
|
| | | m_GodWeaponName.text = Language.Get("L1128");
|
| | | break;
|
| | | case MagicianType.StrikeMag:
|
| | | m_GodWeaponName.text = Language.Get("L1129");
|
| | | break;
|
| | | }
|
| | | var _data = model.GetMagicianData(_type);
|
| | | m_GodWeaponLevelTxt.gameObject.SetActive(_data != null && _data.level >= 1);
|
| | | m_GodWeaponLevelTxt.text = StringUtility.Contact(_data.level, Language.Get("L1047"));
|
| | | m_UnlockRect.gameObject.SetActive(_data == null || _data.level < 1);
|
| | | m_SelectBottom.SetSprite(model.selectType == _type ? "ListBtn_Select" : "ListBtn_UnSelect");
|
| | | var config = GodWeaponConfig.GetConfig(_type, 1);
|
| | | m_GodWeaponName.text = config.Name;
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(_type);
|
| | | m_Level.gameObject.SetActive(godWeaponInfo != null && godWeaponInfo.level >= 1);
|
| | | m_Level.text = StringUtility.Contact(godWeaponInfo.level, Language.Get("L1047"));
|
| | | m_ContainerUnlock.gameObject.SetActive(godWeaponInfo == null || godWeaponInfo.level < 1);
|
| | | m_Redpoint.redpointId = MagicianModel.MAGICAIN_REDPOINT * MagicianModel.MAGICAIN_INTERVAL + _type;
|
| | | m_LockDisplay.text = Language.Get("MagicWin_1");
|
| | | m_Condition.text = Language.Get("MagicWin_1");
|
| | | if (model.godWeaponIcons.ContainsKey(_type))
|
| | | {
|
| | | m_GodWeaponIcon.SetSprite(model.godWeaponIcons[_type]);
|
| | | m_GodWeaponIcon.SetNativeSize();
|
| | | m_Icon.SetSprite(model.godWeaponIcons[_type]);
|
| | | m_Icon.SetNativeSize();
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | using System;
|
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using TableConfig;
|
| | | using UnityEngine; |
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class GodWeaponSkillBehaviour : MonoBehaviour
|
| | | {
|
| | | [SerializeField] Image m_SkillIcon;
|
| | | [SerializeField] Transform m_ContainerLock;
|
| | | [SerializeField] Text m_SkillCondition;
|
| | | [SerializeField] Button m_Func;
|
| | |
|
| | | GodWeaponConfig config = null;
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | | m_Func.onClick.AddListener(OnFunc);
|
| | | }
|
| | |
|
| | | public void Display(GodWeaponConfig config)
|
| | | {
|
| | | this.config = config;
|
| | | var skillConfig = Config.Instance.Get<SkillConfig>(config.SkillID);
|
| | | if (config != null && skillConfig != null)
|
| | | {
|
| | | m_SkillIcon.SetSprite(skillConfig.IconName);
|
| | | m_SkillIcon.gameObject.SetActive(true);
|
| | | var active = PlayerDatas.Instance.skill.GetSKillById(skillConfig.SkillID) != null;
|
| | | m_ContainerLock.gameObject.SetActive(!active);
|
| | | m_SkillCondition.gameObject.SetActive(!active);
|
| | | m_SkillIcon.material = active ? MaterialUtility.GetUIDefaultGraphicMaterial() :
|
| | | MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | if (!active)
|
| | | {
|
| | | m_SkillCondition.text = Language.Get("L1091", config.Lv);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnFunc()
|
| | | {
|
| | | if (config != null)
|
| | | {
|
| | | string extra = string.Empty;
|
| | | if (PlayerDatas.Instance.skill.GetSKillById(config.SkillID) == null)
|
| | | {
|
| | | extra = StringUtility.Contact("<color=#fa0101>", Language.Get("L1113", config.Name, config.Lv), "</color>");
|
| | | }
|
| | | SkillDetails.ShowSkillDetails(config.SkillID, SkillDetails.SkillSourceType.MagicianSkill, 0, config.Name, extra);
|
| | | }
|
| | | }
|
| | | }
|
| | | } |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f54069bcb16407444b18220d120633c5 |
| | | timeCreated: 1542273784 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class MagicianModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | public event Action onSelectUpdate;
|
| | |
|
| | | PlayerPackModel packModel
|
| | | {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); }
|
| | | get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); }
|
| | | }
|
| | |
|
| | | bool serverInited = false;
|
| | |
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | | playerPack.RefreshItemCountAct += RefreshPackItem;
|
| | | packModel.RefreshItemCountAct += RefreshPackItem;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | }
|
| | |
|
| | | private void OnFuncStateChangeEvent(int func)
|
| | | {
|
| | | if (func == (int)FuncOpenEnum.Magician)
|
| | | if (func == (int)FuncOpenEnum.GodWeapon)
|
| | | {
|
| | | UpdateRedPoint();
|
| | | }
|
| | |
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | playerPack.RefreshItemCountAct -= RefreshPackItem;
|
| | | packModel.RefreshItemCountAct -= RefreshPackItem;
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | serverInited = false;
|
| | | foreach (var godWeapon in godWeaponInfoDict.Values)
|
| | | {
|
| | | godWeapon.level = 0;
|
| | | godWeapon.exp = 0;
|
| | | }
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | serverInited = true;
|
| | | UpdateRedPoint();
|
| | | }
|
| | |
|
| | | private Dictionary<int, int[]> godWeaponLvUpItem = new Dictionary<int, int[]>();
|
| | | public int[] GetLvUpItemByType(int type)
|
| | | {
|
| | | return godWeaponLvUpItem[type];
|
| | | }
|
| | | public List<int> magicianTypes { get; private set; }
|
| | | private Dictionary<int, int[]> godWeaponLevelUpCost = new Dictionary<int, int[]>();
|
| | | public List<int> godWeaponTypes { get; private set; }
|
| | | public Dictionary<int, string> godWeaponIcons { get; private set; }
|
| | | public Dictionary<int, Dictionary<int, int>> godWeaponSkillDict = new Dictionary<int, Dictionary<int, int>>();
|
| | | public int selectType = 0;
|
| | | Dictionary<int, List<GodWeaponCondition>> godWeaponConditions = new Dictionary<int, List<GodWeaponCondition>>();
|
| | |
|
| | | int m_SelectType = 0;
|
| | | public int selectType
|
| | | {
|
| | | get { return m_SelectType; }
|
| | | set
|
| | | {
|
| | | if (m_SelectType != value)
|
| | | {
|
| | | m_SelectType = value;
|
| | | if (onSelectUpdate != null)
|
| | | {
|
| | | onSelectUpdate();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public int selectItemIndex = 0;
|
| | | public int gotoType = 0;
|
| | | void ParseConfig()
|
| | | {
|
| | | magicianTypes = GodWeaponConfig.GetGodWeaponType();
|
| | | for (int i = 0; i < magicianTypes.Count; i++)
|
| | | godWeaponTypes = GodWeaponConfig.GetGodWeaponType();
|
| | | for (int i = 0; i < godWeaponTypes.Count; i++)
|
| | | {
|
| | | FuncConfigConfig _funcCfg = Config.Instance.Get<FuncConfigConfig>(string.Format("GodWeapon{0}", magicianTypes[i]));
|
| | | int[] itemarray = ConfigParse.GetMultipleStr<int>(_funcCfg.Numerical1);
|
| | | godWeaponLvUpItem.Add(magicianTypes[i], itemarray);
|
| | | GodWeaponInfo godWeapon = new GodWeaponInfo()
|
| | | {
|
| | | exp = 0,
|
| | | level = 0,
|
| | | type = godWeaponTypes[i],
|
| | | };
|
| | | godWeaponInfoDict.Add(godWeapon.type, godWeapon);
|
| | |
|
| | | if (!redpointDict.ContainsKey(godWeapon.type))
|
| | | {
|
| | | Redpoint redpoint = new Redpoint(MAGICAIN_REDPOINT, MAGICAIN_REDPOINT * MAGICAIN_INTERVAL + godWeapon.type);
|
| | | redpointDict.Add(godWeapon.type, redpoint);
|
| | | redpoint.state = RedPointState.None;
|
| | | }
|
| | |
|
| | | var config = Config.Instance.Get<FuncConfigConfig>(string.Format("GodWeapon{0}", godWeaponTypes[i]));
|
| | | int[] itemarray = ConfigParse.GetMultipleStr<int>(config.Numerical1);
|
| | | godWeaponLevelUpCost.Add(godWeaponTypes[i], itemarray);
|
| | | }
|
| | |
|
| | | godWeaponIcons = new Dictionary<int, string>();
|
| | | var _cfg = Config.Instance.Get<FuncConfigConfig>("GodModel");
|
| | | var _godWeaponJson = LitJson.JsonMapper.ToObject(_cfg.Numerical2);
|
| | |
| | | _dict.Add(configs[i].Lv, configs[i].SkillID);
|
| | | }
|
| | | }
|
| | |
|
| | | var conditionConfig = Config.Instance.Get<FuncConfigConfig>("GodWeaponActive");
|
| | | var json = LitJson.JsonMapper.ToObject(conditionConfig.Numerical2);
|
| | | foreach (var key in json.Keys)
|
| | | {
|
| | | var type = int.Parse(key);
|
| | | List<GodWeaponCondition> list;
|
| | | if (!godWeaponConditions.TryGetValue(type, out list))
|
| | | {
|
| | | list = new List<GodWeaponCondition>();
|
| | | godWeaponConditions.Add(type, list);
|
| | | }
|
| | | int[][] conditions = LitJson.JsonMapper.ToObject<int[][]>(json[key].ToJson());
|
| | | for (int i = 0; i < conditions.Length; i++)
|
| | | {
|
| | | var condition = conditions[i];
|
| | | list.Add(new GodWeaponCondition()
|
| | | {
|
| | | type = condition[0],
|
| | | level = condition[1],
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public int[] GetLevelUpItemByType(int type)
|
| | | {
|
| | | return godWeaponLevelUpCost[type];
|
| | | }
|
| | |
|
| | | #region 红点
|
| | | public const int MAGICAIN_REDPOINT = 10104;
|
| | | public const int MAGICAIN_INTERVAL = 100;
|
| | |
| | | public Redpoint magicianRedpoint { get { return magicianPoint; } }
|
| | | public void UpdateRedPoint()
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Magician))
|
| | | foreach (var redpoint in redpointDict.Values)
|
| | | {
|
| | | redpoint.state = RedPointState.None;
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.GodWeapon))
|
| | | {
|
| | | return;
|
| | | }
|
| | | foreach (var key in redpointDict.Keys)
|
| | | {
|
| | | int[] items = GetLvUpItemByType((int)key);
|
| | | redpointDict[key].state = RedPointState.None;
|
| | | if (IsGodWeaponMaxLevel(key))
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (!IsGodWeaponUnlock(key) && ContainsCondition(key))
|
| | | {
|
| | | if (SatisfyUnlockCondition(key))
|
| | | {
|
| | | redpointDict[key].state = RedPointState.Simple;
|
| | | }
|
| | | continue;
|
| | | }
|
| | | int[] items = GetLevelUpItemByType((int)key);
|
| | | for (int i = 0; i < items.Length; i++)
|
| | | {
|
| | | if (playerPack.GetItemCountByID(PackType.rptItem, items[i]) > 0)
|
| | | if (packModel.GetItemCountByID(PackType.rptItem, items[i]) > 0)
|
| | | {
|
| | | MagicianData data = null;
|
| | | if (magicianDict.TryGetValue(key, out data))
|
| | | {
|
| | | var _godWeaponCfg = Config.Instance.Get<GodWeaponConfig>(data.level + 1);
|
| | | if (_godWeaponCfg == null)
|
| | | {
|
| | | redpointDict[key].state = RedPointState.None;
|
| | | break;
|
| | | }
|
| | | }
|
| | | redpointDict[key].state = RedPointState.Simple;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | public bool CanTemperMagician()
|
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Magician))
|
| | | {
|
| | | return false;
|
| | | }
|
| | | foreach (var key in redpointDict.Keys)
|
| | | {
|
| | | if (redpointDict[key].state == RedPointState.Simple)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool GetRedpointLightByType(int _type)
|
| | | {
|
| | | if (redpointDict.ContainsKey(_type))
|
| | |
| | | return false;
|
| | | }
|
| | | #endregion
|
| | | public void TemperMagician(int type)
|
| | |
|
| | | public void HammerGodWeapon(int type)
|
| | | {
|
| | | MagicianData data = GetMagicianData(type);
|
| | | if (data != null)
|
| | | GodWeaponInfo godWeaponInfo = GetGodWeaponInfo(type);
|
| | | if (godWeaponInfo == null)
|
| | | {
|
| | | if (IsGodWeaponMaxLevel(type))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1054"));
|
| | | return;
|
| | | }
|
| | | return;
|
| | | }
|
| | | int[] items = GetLvUpItemByType(type);
|
| | | if (IsGodWeaponMaxLevel(type))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1054"));
|
| | | return;
|
| | | }
|
| | | int[] items = GetLevelUpItemByType(type);
|
| | | if (selectItemIndex >= items.Length)
|
| | | {
|
| | | return;
|
| | | }
|
| | | ItemConfig itemCfg = Config.Instance.Get<ItemConfig>(items[selectItemIndex]);
|
| | | var _itemCnt = playerPack.GetItemCountByID(PackType.rptItem, itemCfg.ID);
|
| | | if (_itemCnt < 1)
|
| | | var itemId = items[selectItemIndex];
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | var count = packModel.GetItemCountByID(PackType.rptItem, itemId);
|
| | | if (count < 1)
|
| | | {
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(itemCfg.ID);
|
| | | if (!IsGodWeaponTemperItem(3, itemCfg.ID) && !NewBieCenter.Instance.completeGuidesBuf.Contains(85))
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(itemId);
|
| | | if (!IsGodWeaponHammerItem(3, itemId) && !NewBieCenter.Instance.completeGuidesBuf.Contains(85))
|
| | | {
|
| | | NewBieCenter.Instance.StartNewBieGuide(85);
|
| | | }
|
| | |
| | | }
|
| | | CA555_tagCMGodWeaponPlus _pak = new CA555_tagCMGodWeaponPlus();
|
| | | _pak.WeaponType = (uint)type;
|
| | | _pak.ItemID = (uint)items[selectItemIndex];
|
| | | _pak.ItemID = (uint)itemId;
|
| | | GameNetSystem.Instance.SendInfo(_pak);
|
| | | }
|
| | | public event Action OnRefresh;
|
| | | private Dictionary<int, MagicianData> magicianDict = new Dictionary<int, MagicianData>();
|
| | | public void OnMagicianChange(HA31D_tagMCGodWeaponLVList vNetData)
|
| | |
|
| | | public event Action godWeaponUpdate;
|
| | | private Dictionary<int, GodWeaponInfo> godWeaponInfoDict = new Dictionary<int, GodWeaponInfo>();
|
| | | public void UpdateGodWeaponInfo(HA31D_tagMCGodWeaponLVList package)
|
| | | {
|
| | | for (byte i = 0; i < vNetData.WeaponNum; i++)
|
| | | for (byte i = 0; i < package.WeaponNum; i++)
|
| | | {
|
| | | HA31D_tagMCGodWeaponLVList.tagMCGodWeaponLVInfo _sData = vNetData.WeaponInfoList[i];
|
| | | MagicianData data = null;
|
| | | magicianDict.TryGetValue(_sData.WeaponType, out data);
|
| | | if (data == null)
|
| | | HA31D_tagMCGodWeaponLVList.tagMCGodWeaponLVInfo data = package.WeaponInfoList[i];
|
| | | GodWeaponInfo godWeaponInfo = GetGodWeaponInfo(data.WeaponType);
|
| | | if (godWeaponInfo != null)
|
| | | {
|
| | | data = new MagicianData();
|
| | | magicianDict.Add(_sData.WeaponType, data);
|
| | | }
|
| | |
|
| | | CheckActivate((int)data.type, data.level, _sData.WeaponLV);
|
| | |
|
| | | data.exp = _sData.WeaponExp;
|
| | | data.level = _sData.WeaponLV;
|
| | | data.type = _sData.WeaponType;
|
| | | if (!redpointDict.ContainsKey((int)data.type))
|
| | | {
|
| | | Redpoint redpoint = new Redpoint(MAGICAIN_REDPOINT, MAGICAIN_REDPOINT * MAGICAIN_INTERVAL + (int)data.type);
|
| | | redpointDict.Add((int)data.type, redpoint);
|
| | | redpoint.state = RedPointState.None;
|
| | | CheckActivate(godWeaponInfo.type, godWeaponInfo.level, data.WeaponLV);
|
| | | godWeaponInfo.exp = data.WeaponExp;
|
| | | godWeaponInfo.level = data.WeaponLV;
|
| | | }
|
| | | }
|
| | | UpdateRedPoint();
|
| | | if (OnRefresh != null)
|
| | | if (godWeaponUpdate != null)
|
| | | {
|
| | | OnRefresh();
|
| | | godWeaponUpdate();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | |
|
| | | public MagicianData GetMagicianData(int type)
|
| | | public bool TryGetGodWeaponSkills(int type, out Dictionary<int, int> skills)
|
| | | {
|
| | | MagicianData data = null;
|
| | | magicianDict.TryGetValue(type, out data);
|
| | | return godWeaponSkillDict.TryGetValue(type, out skills);
|
| | | }
|
| | |
|
| | | public GodWeaponInfo GetGodWeaponInfo(int type)
|
| | | {
|
| | | GodWeaponInfo data = null;
|
| | | godWeaponInfoDict.TryGetValue(type, out data);
|
| | | return data;
|
| | | }
|
| | |
|
| | | public bool IsGodWeaponMaxLevel(int _type)
|
| | | {
|
| | | var _data = GetMagicianData(_type);
|
| | | var _data = GetGodWeaponInfo(_type);
|
| | | var config = Config.Instance.Get<GodWeaponConfig>(_data.level + 1);
|
| | | return config == null;
|
| | | }
|
| | |
|
| | | public bool IsGodWeaponTemperItem(int _type,int _itemId)
|
| | | public bool IsGodWeaponHammerItem(int _type,int _itemId)
|
| | | {
|
| | | var items = GetLvUpItemByType(_type);
|
| | | var items = GetLevelUpItemByType(_type);
|
| | | if (items == null)
|
| | | {
|
| | | return false;
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | public bool IsGodWeaponUnlock(int type)
|
| | | {
|
| | | var godWeaponInfo = GetGodWeaponInfo(type);
|
| | | if (godWeaponInfo != null && godWeaponInfo.level >= 1)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool SatisfyUnlockCondition(int type)
|
| | | {
|
| | | List<GodWeaponCondition> list;
|
| | | if (godWeaponConditions.TryGetValue(type, out list))
|
| | | {
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | var godWeaponInfo = GetGodWeaponInfo(list[i].type);
|
| | | if (godWeaponInfo == null || godWeaponInfo.level < list[i].level)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | public bool ContainsCondition(int type)
|
| | | {
|
| | | return godWeaponConditions.ContainsKey(type);
|
| | | }
|
| | |
|
| | | public bool IsGodWeaponMaxLevelByItem(int _itemId)
|
| | | {
|
| | | foreach (var _key in godWeaponLvUpItem.Keys)
|
| | | foreach (var _key in godWeaponLevelUpCost.Keys)
|
| | | {
|
| | | for (int i = 0; i < godWeaponLvUpItem[_key].Length; i++)
|
| | | for (int i = 0; i < godWeaponLevelUpCost[_key].Length; i++)
|
| | | {
|
| | | if (godWeaponLvUpItem[_key][i] == _itemId)
|
| | | if (godWeaponLevelUpCost[_key][i] == _itemId)
|
| | | {
|
| | | return IsGodWeaponMaxLevel(_key);
|
| | | }
|
| | |
| | |
|
| | | }
|
| | |
|
| | | public class MagicianData
|
| | | public class GodWeaponInfo
|
| | | {
|
| | | public uint type;
|
| | | public int type;
|
| | | public int level;
|
| | | public uint exp;
|
| | | }
|
| | |
|
| | | public struct GodWeaponCondition
|
| | | {
|
| | | public int type;
|
| | | public int level;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | public class MagicianWin : Window
|
| | | {
|
| | | [SerializeField] ScrollerController m_GodWeaponCtrl;
|
| | | [SerializeField] LongPressButton m_TemperBtn;
|
| | | [SerializeField] Text m_TemperBtnTxt;
|
| | | [SerializeField] GameObject m_ContainerLock;
|
| | | [SerializeField] GameObject m_ContainerUnLock;
|
| | | [SerializeField] Text previewText;
|
| | | [SerializeField] Text stuffText;
|
| | | [SerializeField] IntensifySmoothSlider m_SmoothSlider;
|
| | | [SerializeField] Text expNumText;
|
| | | [SerializeField] Text progressText;
|
| | | [SerializeField] Text attrTitText;
|
| | | [SerializeField] GameObject skillPanel;
|
| | | [SerializeField] List<GodWeaponSkill> m_Skills;
|
| | | [SerializeField] Image chooseImg;
|
| | | [SerializeField] List<ItemCell> temperItems = new List<ItemCell>();
|
| | | [SerializeField] RawImage m_GodWeaponModel;
|
| | | [SerializeField] List<GodWeaponProperty> m_Propertys;
|
| | | [SerializeField] Text m_UseItemName;
|
| | | [SerializeField] UIEffect m_GodWeaponEffect;
|
| | | [SerializeField, Header("滑动条时间")] float m_SliderDelay=0.1f;
|
| | | int m_PresentSelectItemCnt = 0;
|
| | | [SerializeField] ScrollerController m_GodWeaponController;
|
| | | [SerializeField] LongPressButton m_Hammer;
|
| | | [SerializeField] Text m_HammerLabel;
|
| | |
|
| | | MagicianModel m_Model;
|
| | | [SerializeField] Text m_PropertyTitle;
|
| | | [SerializeField] Text m_CostItemTitle;
|
| | |
|
| | | [SerializeField] RectTransform m_ContainerUnlock;
|
| | | [SerializeField] IntensifySmoothSlider m_ExpSlider;
|
| | | [SerializeField] Text m_Exp;
|
| | | [SerializeField] PropertyBehaviour[] m_Propertys;
|
| | | [SerializeField] RectTransform m_ContainerLock;
|
| | | [SerializeField] RectTransform m_ContainerProgress;
|
| | | [SerializeField] Text m_Progress;
|
| | | [SerializeField] Text m_UnlockCondition;
|
| | | [SerializeField] PropertyBehaviour[] m_PreviewPropertys;
|
| | |
|
| | | [SerializeField] RectTransform m_ContainerSkill;
|
| | | [SerializeField] GodWeaponSkillBehaviour[] m_Skills;
|
| | |
|
| | | [SerializeField] ItemCell[] m_Items;
|
| | | [SerializeField] Image m_Select;
|
| | | [SerializeField] RawImage m_GodWeaponModel;
|
| | | [SerializeField] UIEffect m_GodWeaponEffect;
|
| | |
|
| | | [SerializeField, Header("滑动条时间")] float m_SliderDelay = 0.1f;
|
| | |
|
| | | MagicianModel model
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<MagicianModel>());
|
| | | }
|
| | | get { return ModelCenter.Instance.GetModel<MagicianModel>(); }
|
| | | }
|
| | |
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | PlayerPackModel packModel
|
| | | {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); }
|
| | | get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); }
|
| | | }
|
| | |
|
| | | int selectItemCount = 0;
|
| | | FunctionUnlockFlyObjectTarget flyObjectTarget;
|
| | |
|
| | | private void OnItemRefresh(PackType type, int index, int id)
|
| | | {
|
| | | if (model.selectType > 0)
|
| | | {
|
| | | UpdateUseItem(model.selectType);
|
| | | UpdateItems(model.selectItemIndex);
|
| | | try
|
| | | {
|
| | | bool allNone = true;
|
| | | int[] items = model.GetLvUpItemByType(model.selectType);
|
| | | for (int i = 0; i < items.Length; i++)
|
| | | {
|
| | | var _count = playerPack.GetItemCountByID(PackType.rptItem, items[i]);
|
| | | if (_count > 0)
|
| | | {
|
| | | allNone = false;
|
| | | }
|
| | | }
|
| | | var count = playerPack.GetItemCountByID(PackType.rptItem, items[model.selectItemIndex]);
|
| | | if (count == 0 && !allNone)
|
| | | {
|
| | | UpdateItems(GetItemIndex(model.selectType, model.selectItemIndex));
|
| | | }
|
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | | }
|
| | | void OnRefresh()
|
| | | {
|
| | | var _data = model.GetMagicianData(model.selectType);
|
| | | m_GodWeaponCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | UpdateDynamicData(_data);
|
| | | UpdateStaticData(_data);
|
| | | }
|
| | |
|
| | | void RefreshGodWeapons()
|
| | | {
|
| | | if (m_GodWeaponCtrl.GetNumberOfCells(m_GodWeaponCtrl.m_Scorller) == 0)
|
| | | {
|
| | | m_GodWeaponCtrl.Refresh();
|
| | | for (int i = 0; i < model.magicianTypes.Count; i++)
|
| | | {
|
| | | m_GodWeaponCtrl.AddCell(ScrollerDataType.Header, i, OnMagicianBtnClick);
|
| | | }
|
| | | m_GodWeaponCtrl.Restart();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_GodWeaponCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | | }
|
| | |
|
| | | void OnMagicianBtnClick(CellView _cell)
|
| | | {
|
| | | var type = model.magicianTypes[_cell.index];
|
| | | SwitchGodWeapon(type);
|
| | | }
|
| | |
|
| | | List<GodWeaponConfig> skills = new List<GodWeaponConfig>(4);
|
| | | void ShowGodWeaponModel(int type)
|
| | | {
|
| | | UI3DTreasureExhibition.Instance.BeginShowGodWeapon(type, m_GodWeaponModel);
|
| | | }
|
| | |
|
| | | void UpdateStaticData(MagicianData data)
|
| | | {
|
| | | if (data.level < 1)
|
| | | {
|
| | | previewText.text = Language.Get("L1048");
|
| | | stuffText.text = Language.Get("L1049");
|
| | | GodWeaponConfig cfg = GodWeaponConfig.GetGodWeaponCfgByTypeLv((int)data.type, data.level + 1);
|
| | | if (cfg == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | attrTitText.text = Language.Get("L1050", cfg.Name);
|
| | | int[] Attrs = cfg.AttrType;
|
| | | int[] Nums = cfg.AttrNum;
|
| | | for (int i = 0; i < 2; i++)
|
| | | {
|
| | | Text attrtext = m_ContainerLock.transform.Find(string.Format("LockAttrText{0}", i)).GetComponent<Text>();
|
| | | Text numtext = m_ContainerLock.transform.Find(string.Format("LockNumText{0}", i)).GetComponent<Text>();
|
| | | attrtext.gameObject.SetActive(false);
|
| | | numtext.gameObject.SetActive(false);
|
| | | if (i < Attrs.Length)
|
| | | {
|
| | | int id = Attrs[i];
|
| | | if (id == 0)
|
| | | continue;
|
| | | PlayerPropertyConfig propertyCfg = Config.Instance.Get<PlayerPropertyConfig>(id);
|
| | | attrtext.gameObject.SetActive(true);
|
| | | attrtext.text = propertyCfg.Name;
|
| | | numtext.gameObject.SetActive(true);
|
| | | numtext.text = StringUtility.Contact("+", UIHelper.ReplacePercentage(Nums[i], propertyCfg.ISPercentage), propertyCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | }
|
| | | }
|
| | | m_TemperBtnTxt.text = Language.Get("L1130");
|
| | | }
|
| | | else
|
| | | {
|
| | | previewText.text = Language.Get("L1051");
|
| | | stuffText.text = Language.Get("L1052");
|
| | | }
|
| | | }
|
| | |
|
| | | void UpdateDynamicData(MagicianData _data, bool _switch = false)
|
| | | {
|
| | | if (_data.level < 1)
|
| | | {
|
| | | int progress = (int)((float)_data.exp / GodWeaponConfig.GetGodWeaponCfgByTypeLv((int)_data.type, _data.level).NeedExp * 100);
|
| | | progressText.text = StringUtility.Contact(progress, "%");
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ContainerLock.gameObject.SetActive(false);
|
| | | m_ContainerUnLock.gameObject.SetActive(true);
|
| | | GodWeaponConfig cfg = GodWeaponConfig.GetGodWeaponCfgByTypeLv((int)_data.type, _data.level);
|
| | | GodWeaponConfig nextCfg = GodWeaponConfig.GetGodWeaponCfgByTypeLv((int)_data.type, _data.level + 1);
|
| | | m_SmoothSlider.slider.minValue = 0;
|
| | | m_SmoothSlider.slider.maxValue = 1;
|
| | | int[] _propertys;
|
| | | int[] _propertyValues;
|
| | | if (nextCfg == null)
|
| | | {
|
| | | m_SmoothSlider.stage = cfg.Lv;
|
| | | m_SmoothSlider.delay = 0;
|
| | | m_SmoothSlider.ResetStage();
|
| | | m_SmoothSlider.value = cfg.NeedExp == 0 ? 1 : cfg.NeedExp;
|
| | | expNumText.text = Language.Get("L1053");
|
| | | _propertys = cfg.AttrType;
|
| | | _propertyValues = cfg.AttrNum;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_SmoothSlider.stage = cfg.Lv;
|
| | | if (_switch)
|
| | | {
|
| | | m_SmoothSlider.delay = 0;
|
| | | m_SmoothSlider.ResetStage();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_SmoothSlider.delay = m_SliderDelay;
|
| | | }
|
| | | expNumText.text = StringUtility.Contact(_data.exp, "/", cfg.NeedExp);
|
| | | m_SmoothSlider.value = (float)_data.exp/ cfg.NeedExp;
|
| | | _propertys = nextCfg.AttrType;
|
| | | _propertyValues = nextCfg.AttrNum;
|
| | | }
|
| | | for (int i = 0; i < m_Propertys.Count; i++)
|
| | | {
|
| | | m_Propertys[i].SetActive(i < _propertys.Length);
|
| | | if(i>=_propertys.Length)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | PlayerPropertyConfig _propCfg = Config.Instance.Get<PlayerPropertyConfig>(_propertys[i]);
|
| | | m_Propertys[i].propertyName.text = _propCfg.Name;
|
| | | var _value = 0.0f;
|
| | | m_Propertys[i].propertyValue.text = _value.ToString();
|
| | | if (cfg != null && i < cfg.AttrNum.Length)
|
| | | {
|
| | | _value = UIHelper.ReplacePercentage(cfg.AttrNum[i], _propCfg.ISPercentage);
|
| | | m_Propertys[i].propertyValue.text = StringUtility.Contact(_value, _propCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | }
|
| | | m_Propertys[i].propertyUpValue.gameObject.SetActive(nextCfg != null);
|
| | | if(nextCfg != null)
|
| | | {
|
| | | var _upValue = UIHelper.ReplacePercentage(_propertyValues[i], _propCfg.ISPercentage) - _value;
|
| | | m_Propertys[i].propertyUpValue.gameObject.SetActive(_upValue != 0);
|
| | | m_Propertys[i].propertyUpValue.text = StringUtility.Contact("+", (float)Math.Round(_upValue, 2), _propCfg.ISPercentage == 1 ? "%" : string.Empty);
|
| | | }
|
| | | }
|
| | | m_TemperBtnTxt.text = Language.Get("L1131"); ;
|
| | | }
|
| | |
|
| | | List<GodWeaponConfig> list = GodWeaponConfig.GetGodWeaponCfgByType((int)_data.type);
|
| | | skills.Clear();
|
| | | if (list != null)
|
| | | {
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | if (list[i].SkillID != 0)
|
| | | {
|
| | | skills.Add(list[i]);
|
| | | }
|
| | | }
|
| | | }
|
| | | if (skills.Count < 1)
|
| | | {
|
| | | skillPanel.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | | skillPanel.SetActive(true);
|
| | | for (int i = 0; i < m_Skills.Count; i++)
|
| | | {
|
| | | var _godWeaponCfg = skills[i];
|
| | | m_Skills[i].skillIcon.gameObject.SetActive(true);
|
| | | var _skillCfg = Config.Instance.Get<SkillConfig>(skills[i].SkillID);
|
| | | if (_skillCfg != null)
|
| | | {
|
| | | m_Skills[i].skillIcon.SetSprite(_skillCfg.IconName);
|
| | | var _hasSkill = PlayerDatas.Instance.skill.GetSKillById(_skillCfg.SkillID) != null;
|
| | | m_Skills[i].skillLock.gameObject.SetActive(!_hasSkill);
|
| | | m_Skills[i].skillName.gameObject.SetActive(!_hasSkill);
|
| | | m_Skills[i].skillIcon.material = _hasSkill ? MaterialUtility.GetUIDefaultGraphicMaterial() :
|
| | | MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | if (!_hasSkill)
|
| | | {
|
| | | m_Skills[i].skillName.text = Language.Get("L1091", skills[i].Lv);
|
| | | }
|
| | | }
|
| | | m_Skills[i].skillBtn.RemoveAllListeners();
|
| | | m_Skills[i].skillBtn.onClick.AddListener(() =>
|
| | | {
|
| | | OnSkillClick(_godWeaponCfg);
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnSkillClick(GodWeaponConfig cfg)
|
| | | {
|
| | | string extra = string.Empty;
|
| | | if (PlayerDatas.Instance.skill.GetSKillById(cfg.SkillID) == null)
|
| | | {
|
| | | extra = StringUtility.Contact("<color=#fa0101>", Language.Get("L1113", cfg.Name, cfg.Lv), "</color>");
|
| | | }
|
| | | SkillDetails.ShowSkillDetails(cfg.SkillID, SkillDetails.SkillSourceType.MagicianSkill, 0, cfg.Name, extra);
|
| | | }
|
| | |
|
| | | void UpdateUseItem(int type)
|
| | | {
|
| | | int[] items = model.GetLvUpItemByType(type);
|
| | | if (items != null)
|
| | | {
|
| | | for (int i = 0; i < temperItems.Count; i++)
|
| | | {
|
| | | if (i >= items.Length)
|
| | | {
|
| | | temperItems[i].gameObject.SetActive(false);
|
| | | continue;
|
| | | }
|
| | | else
|
| | | {
|
| | | temperItems[i].gameObject.SetActive(true);
|
| | | int _Cnt = playerPack.GetItemCountByID(PackType.rptItem, items[i]);
|
| | | ItemCellModel cellModel = new ItemCellModel(items[i], false, (ulong)_Cnt);
|
| | | temperItems[i].Init(cellModel);
|
| | | temperItems[i].countText.color = _Cnt > 0 ? UIHelper.GetUIColor(TextColType.Green) : UIHelper.GetUIColor(TextColType.Red);
|
| | | temperItems[i].countText.gameObject.SetActive(true);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | void SwitchGodWeapon(int _type)
|
| | | {
|
| | | var _data = model.GetMagicianData(_type);
|
| | | UpdateDynamicData(_data, true);
|
| | | UpdateStaticData(_data);
|
| | | if (model.selectType == _type)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var _cfg = GodWeaponConfig.GetGodWeaponCfgByTypeLv(_type, _data.level);
|
| | | ShowGodWeaponModel(_type);
|
| | | if (_cfg != null)
|
| | | {
|
| | | model.selectType = (int)_type;
|
| | | m_GodWeaponCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | UpdateUseItem(_type);
|
| | | UpdateItems(GetItemIndex(_type));
|
| | | m_ContainerUnLock.gameObject.SetActive(false);
|
| | | m_ContainerLock.gameObject.SetActive(false);
|
| | | if (_data.level < 1)
|
| | | {
|
| | | m_ContainerLock.gameObject.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ContainerUnLock.gameObject.SetActive(true);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | void OnClickTemper()
|
| | | {
|
| | | var _index = Mathf.Min(model.selectItemIndex, temperItems.Count - 1);
|
| | | var _data = model.GetMagicianData(model.selectType);
|
| | | bool _switchItem = false;
|
| | | if (_index >= 0 && _data != null && _data.level >= 1 && !model.IsGodWeaponMaxLevel((int)_data.type))
|
| | | {
|
| | | int[] items = model.GetLvUpItemByType((int)_data.type);
|
| | | if (_index < items.Length)
|
| | | {
|
| | | var itemCfg = Config.Instance.Get<ItemConfig>(items[_index]);
|
| | | var _itemCnt = playerPack.GetItemCountByID(PackType.rptItem, itemCfg.ID);
|
| | | if (_itemCnt > 0)
|
| | | {
|
| | | EffectMgr.Instance.PlayUIEffect(GetUIEffectId(_index), 2500, temperItems[_index].transform, false);
|
| | | }
|
| | | _switchItem = _itemCnt == 1;
|
| | | }
|
| | | }
|
| | | model.TemperMagician(model.selectType);
|
| | | if (_switchItem)
|
| | | {
|
| | | UpdateItems(GetItemIndex(model.selectType,model.selectItemIndex));
|
| | | }
|
| | | }
|
| | |
|
| | | int GetUIEffectId(int _index)
|
| | | {
|
| | | if (_index == 0)
|
| | | {
|
| | | return 1117;
|
| | | }
|
| | | else if (_index == 1)
|
| | | {
|
| | | return 1118;
|
| | | }
|
| | | return 1119;
|
| | | }
|
| | |
|
| | | private void OnPressTemper()
|
| | | {
|
| | | if (m_PresentSelectItemCnt <= 0)
|
| | | {
|
| | | UpdateItems(GetItemIndex(model.selectType));
|
| | | if (m_PresentSelectItemCnt <= 0)
|
| | | {
|
| | | if (!WindowCenter.Instance.IsOpen<GetItemPathWin>())
|
| | | {
|
| | | int[] items = model.GetLvUpItemByType(model.selectType);
|
| | | ItemConfig itemCfg = Config.Instance.Get<ItemConfig>(items[model.selectItemIndex]);
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(itemCfg.ID);
|
| | | if (!model.IsGodWeaponTemperItem(3, itemCfg.ID) && !NewBieCenter.Instance.completeGuidesBuf.Contains(85))
|
| | | {
|
| | | NewBieCenter.Instance.StartNewBieGuide(85);
|
| | | }
|
| | | }
|
| | | return;
|
| | | }
|
| | | }
|
| | | m_PresentSelectItemCnt--;
|
| | | OnClickTemper();
|
| | | }
|
| | |
|
| | | void OnClickItem(int _index)
|
| | | {
|
| | | if (model.selectItemIndex == _index)
|
| | | {
|
| | | int[] items = model.GetLvUpItemByType(model.selectType);
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(items[model.selectItemIndex]);
|
| | | }
|
| | | UpdateItems(_index);
|
| | | }
|
| | |
|
| | | private void UpdateItems(int _index)
|
| | | {
|
| | | chooseImg.transform.localPosition = temperItems[_index].transform.localPosition;
|
| | | model.selectItemIndex = _index;
|
| | | int[] items = model.GetLvUpItemByType(model.selectType);
|
| | | var _itemCfg = Config.Instance.Get<ItemConfig>(items[_index]);
|
| | | m_PresentSelectItemCnt = playerPack.GetItemCountByID(PackType.rptItem, _itemCfg.ID);
|
| | | m_UseItemName.text = _itemCfg.ItemName;
|
| | | }
|
| | |
|
| | | private int GetItemIndex(int _type, int _ingoreIndex = -1)
|
| | | {
|
| | | int[] items = model.GetLvUpItemByType(_type);
|
| | | var _index = 0;
|
| | | for (int i = 0; i < items.Length; i++)
|
| | | {
|
| | | if (i == _ingoreIndex)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var _itemCnt = playerPack.GetItemCountByID(PackType.rptItem, items[i]);
|
| | | if (_itemCnt > 0)
|
| | | {
|
| | | _index = i;
|
| | | }
|
| | | }
|
| | | return _index;
|
| | | }
|
| | |
|
| | | private void OnRefreshGodWeaponCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | var _cell = cell as GodWeaponCell;
|
| | | _cell.Display(model.magicianTypes[cell.index]);
|
| | | }
|
| | |
|
| | | private void prepareFlySkillEvent(ActivateShow.ActivateFunc _type, int _skillId)
|
| | | {
|
| | | if (_type == ActivateShow.ActivateFunc.GodWeapon)
|
| | | {
|
| | | var _godWeaponType = 0; var _index = 0;
|
| | | if (TryGetSkill(_skillId, out _godWeaponType, out _index))
|
| | | {
|
| | | if (model.selectType != _godWeaponType)
|
| | | {
|
| | | SwitchGodWeapon(_godWeaponType);
|
| | | }
|
| | | flyObjectTarget = m_Skills[_index].container.AddMissingComponent<FunctionUnlockFlyObjectTarget>();
|
| | | flyObjectTarget.IdList = new int[] { _skillId };
|
| | | flyObjectTarget.Z_UnLockType = FunctionUnlockType.Skill;
|
| | | FunctionUnlockFlyObjectTargetCenter.Register(FunctionUnlockType.Skill, new int[] { _skillId }, flyObjectTarget);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void ComplelteFlySkillEvent(ActivateShow.ActivateFunc _type)
|
| | | {
|
| | | if (_type == ActivateShow.ActivateFunc.GodWeapon && flyObjectTarget != null)
|
| | | {
|
| | | Destroy(flyObjectTarget);
|
| | | }
|
| | | }
|
| | |
|
| | | private bool TryGetSkill(int _skillId, out int _type, out int _index)
|
| | | {
|
| | | _type = 0;
|
| | | _index = 0;
|
| | | foreach (var _key in model.godWeaponSkillDict.Keys)
|
| | | {
|
| | | var _dict = model.godWeaponSkillDict[_key];
|
| | | _index = 0;
|
| | | foreach (var _lv in _dict.Keys)
|
| | | {
|
| | | if (_dict[_lv] == _skillId)
|
| | | {
|
| | | _type = _key;
|
| | | return true;
|
| | | }
|
| | | _index++;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | static Dictionary<int, int> currentPropertyDict = new Dictionary<int, int>();
|
| | | static List<int> displayPropertys = new List<int>();
|
| | | static Dictionary<int, int> addPropertyDict = new Dictionary<int, int>();
|
| | | #region built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
|
| | |
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_GodWeaponCtrl.OnRefreshCell += OnRefreshGodWeaponCell;
|
| | | m_TemperBtn.onClick.AddListener(OnClickTemper);
|
| | | m_TemperBtn.onPress.AddListener(OnPressTemper);
|
| | | for (int i = 0; i < temperItems.Count; i++)
|
| | | m_GodWeaponController.OnRefreshCell += OnRefreshCell;
|
| | | m_Hammer.onClick.AddListener(Hammer);
|
| | | m_Hammer.onPress.AddListener(PressHammer);
|
| | | for (int i = 0; i < m_Items.Length; i++)
|
| | | {
|
| | | int index = i;
|
| | | temperItems[i].cellBtn.onClick.AddListener(() =>
|
| | | var index = i;
|
| | | m_Items[i].cellBtn.onClick.AddListener(() =>
|
| | | {
|
| | | OnClickItem(index);
|
| | | OnSelectItem(index);
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | model.selectType = -1;
|
| | | var _type = model.magicianTypes[0];
|
| | | if (model.magicianTypes.Contains(model.gotoType))
|
| | | {
|
| | | _type = model.gotoType;
|
| | | model.gotoType = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | for (int i = 0; i < model.magicianTypes.Count; i++)
|
| | | {
|
| | | if (model.GetRedpointLightByType(model.magicianTypes[i]))
|
| | | {
|
| | | _type = model.magicianTypes[i];
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | RefreshGodWeapons();
|
| | | DisplayGodWeaponTypes();
|
| | |
|
| | | if (!HandleAchievement())
|
| | | {
|
| | | SwitchGodWeapon(_type);
|
| | | UpdateUseItem(model.selectType);
|
| | | ShowGodWeaponModel(model.selectType);
|
| | | UpdateItems(GetItemIndex(model.selectType));
|
| | | model.selectType = GetDefaultSelect();
|
| | | }
|
| | | playerPack.RefreshItemCountAct += OnItemRefresh;
|
| | | model.OnRefresh += OnRefresh;
|
| | | SysNotifyMgr.Instance.sysNotifyEvent += SysNotifyEvent;
|
| | | WindowCenter.Instance.windowBeforeCloseEvent += WindowBeforeCloseEvent;
|
| | | model.gotoType = 0;
|
| | |
|
| | | DisplayGodWeaponInfo(true);
|
| | | DisplaySkills();
|
| | | DisplayItems();
|
| | | model.selectItemIndex = GetItemIndex(model.selectType);
|
| | | DisplaySelectItem();
|
| | | DisplayGodWeaponModel();
|
| | |
|
| | | if (flyObjectTarget != null)
|
| | | {
|
| | | Destroy(flyObjectTarget);
|
| | | }
|
| | |
|
| | | ActivateShow.prepareFlySkillEvent += prepareFlySkillEvent;
|
| | | SysNotifyMgr.Instance.sysNotifyEvent += SysNotifyEvent;
|
| | | model.onSelectUpdate += OnSelectUpdate;
|
| | | model.godWeaponUpdate += GodWeaponUpdate;
|
| | | packModel.RefreshItemCountAct += RefreshItemCountAct;
|
| | | WindowCenter.Instance.windowBeforeCloseEvent += WindowBeforeCloseEvent;
|
| | | ActivateShow.prepareFlySkillEvent += PrepareFlySkillEvent;
|
| | | ActivateShow.complelteFlySkillEvent += ComplelteFlySkillEvent;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | UI3DTreasureExhibition.Instance.StopShow();
|
| | | model.selectType = 0;
|
| | | model.gotoType = 0;
|
| | | playerPack.RefreshItemCountAct -= OnItemRefresh;
|
| | | model.OnRefresh -= OnRefresh;
|
| | | SysNotifyMgr.Instance.sysNotifyEvent -= SysNotifyEvent;
|
| | | ActivateShow.prepareFlySkillEvent -= prepareFlySkillEvent;
|
| | | ActivateShow.complelteFlySkillEvent -= ComplelteFlySkillEvent;
|
| | | model.onSelectUpdate -= OnSelectUpdate;
|
| | | model.godWeaponUpdate -= GodWeaponUpdate;
|
| | | packModel.RefreshItemCountAct -= RefreshItemCountAct;
|
| | | WindowCenter.Instance.windowBeforeCloseEvent -= WindowBeforeCloseEvent;
|
| | | ActivateShow.prepareFlySkillEvent -= PrepareFlySkillEvent;
|
| | | ActivateShow.complelteFlySkillEvent -= ComplelteFlySkillEvent;
|
| | | UI3DTreasureExhibition.Instance.StopShow();
|
| | | }
|
| | |
|
| | | private void WindowBeforeCloseEvent(Window _win)
|
| | | #endregion
|
| | | private void SysNotifyEvent(string key, ArrayList infoList)
|
| | | {
|
| | | if (_win is RealmPropertyUpWin)
|
| | | if (key == "GetGodWeapon" && infoList != null && infoList.Count >= 2)
|
| | | {
|
| | | ShowGodWeaponModel(model.selectType);
|
| | | }
|
| | | }
|
| | |
|
| | | private void SysNotifyEvent(string _key, ArrayList _params)
|
| | | {
|
| | | if (_key == "GetGodWeapon" && _params != null && _params.Count >= 2)
|
| | | {
|
| | | int _type = 0;
|
| | | if(!int.TryParse(_params[1].ToString(),out _type))
|
| | | int type = 0;
|
| | | if (!int.TryParse(infoList[1].ToString(), out type))
|
| | | {
|
| | | return;
|
| | | }
|
| | | if ((MagicianType)_type == MagicianType.AttackMag)
|
| | | if (type == 2)
|
| | | {
|
| | | m_GodWeaponEffect.effect = 3035;
|
| | | m_GodWeaponEffect.Play();
|
| | | }
|
| | | else if((MagicianType)_type == MagicianType.CritMag)
|
| | | else if (type == 3)
|
| | | {
|
| | | m_GodWeaponEffect.effect = 3036;
|
| | | m_GodWeaponEffect.Play();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | private void ComplelteFlySkillEvent(ActivateShow.ActivateFunc type)
|
| | | {
|
| | | if (type == ActivateShow.ActivateFunc.GodWeapon)
|
| | | {
|
| | | if (flyObjectTarget != null)
|
| | | {
|
| | | Destroy(flyObjectTarget);
|
| | | }
|
| | | DisplaySkills();
|
| | | }
|
| | | }
|
| | |
|
| | | private void PrepareFlySkillEvent(ActivateShow.ActivateFunc type, int skillId)
|
| | | {
|
| | | if (type == ActivateShow.ActivateFunc.GodWeapon)
|
| | | {
|
| | | var godWeaponType = 0;
|
| | | var index = 0;
|
| | | if (TryGetGodWeaponType(skillId, out godWeaponType, out index))
|
| | | {
|
| | | model.selectType = godWeaponType;
|
| | | flyObjectTarget = m_Skills[index].AddMissingComponent<FunctionUnlockFlyObjectTarget>();
|
| | | flyObjectTarget.IdList = new int[] { skillId };
|
| | | flyObjectTarget.Z_UnLockType = FunctionUnlockType.Skill;
|
| | | FunctionUnlockFlyObjectTargetCenter.Register(FunctionUnlockType.Skill, new int[] { skillId }, flyObjectTarget);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void WindowBeforeCloseEvent(Window window)
|
| | | {
|
| | | if (window is RealmPropertyUpWin)
|
| | | {
|
| | | DisplayGodWeaponModel();
|
| | | }
|
| | | }
|
| | |
|
| | | private void RefreshItemCountAct(PackType packType, int index, int itemId)
|
| | | {
|
| | | if (packType == PackType.rptItem)
|
| | | {
|
| | | DisplayItems();
|
| | | bool noneOfAnyItemCount = true;
|
| | | var items = model.GetLevelUpItemByType(model.selectType);
|
| | | for (int i = 0; i < items.Length; i++)
|
| | | {
|
| | | if (packModel.GetItemCountByID(PackType.rptItem, items[i]) > 0)
|
| | | {
|
| | | noneOfAnyItemCount = false;
|
| | | }
|
| | | }
|
| | | var count = packModel.GetItemCountByID(PackType.rptItem, items[model.selectItemIndex]);
|
| | | if (count == 0 && !noneOfAnyItemCount)
|
| | | {
|
| | | OnSelectItem(GetItemIndex(model.selectType, model.selectItemIndex));
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnSelectUpdate()
|
| | | {
|
| | | DisplayGodWeaponInfo(true);
|
| | | DisplaySkills();
|
| | | DisplayItems();
|
| | | model.selectItemIndex = GetItemIndex(model.selectType);
|
| | | DisplaySelectItem();
|
| | | DisplayGodWeaponModel();
|
| | | m_GodWeaponController.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | |
|
| | | private void GodWeaponUpdate()
|
| | | {
|
| | | m_GodWeaponController.m_Scorller.RefreshActiveCellViews();
|
| | | DisplayGodWeaponInfo(false);
|
| | | }
|
| | |
|
| | | private void DisplayGodWeaponInfo(bool immediatly)
|
| | | {
|
| | | bool active = model.IsGodWeaponUnlock(model.selectType);
|
| | | m_ContainerLock.gameObject.SetActive(!active);
|
| | | m_ContainerUnlock.gameObject.SetActive(active);
|
| | | if (!active)
|
| | | {
|
| | | m_CostItemTitle.text = Language.Get("L1049");
|
| | | m_PropertyTitle.text = Language.Get("L1048");
|
| | | m_HammerLabel.text = Language.Get("L1130");
|
| | | DisplayPreviewProperty();
|
| | | DisplayProgress();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_CostItemTitle.text = Language.Get("L1052");
|
| | | m_PropertyTitle.text = Language.Get("L1051");
|
| | | m_HammerLabel.text = Language.Get("L1131");
|
| | | DisplayProperty();
|
| | | DisplayExp(immediatly);
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplaySkills()
|
| | | {
|
| | | Dictionary<int, int> skills = null;
|
| | | var index = 0;
|
| | | if (model.TryGetGodWeaponSkills(model.selectType, out skills))
|
| | | {
|
| | | foreach (var level in skills.Keys)
|
| | | {
|
| | | if (index < m_Skills.Length)
|
| | | {
|
| | | m_Skills[index].gameObject.SetActive(true);
|
| | | var config = GodWeaponConfig.GetConfig(model.selectType, level);
|
| | | m_Skills[index].Display(config);
|
| | | index++;
|
| | | }
|
| | | }
|
| | | }
|
| | | for (int i = index; i < m_Skills.Length; i++)
|
| | | {
|
| | | m_Skills[index].gameObject.SetActive(false);
|
| | | }
|
| | | m_ContainerSkill.gameObject.SetActive(skills != null && skills.Count > 0);
|
| | | }
|
| | |
|
| | | private void DisplayItems()
|
| | | {
|
| | | var items = model.GetLevelUpItemByType(model.selectType);
|
| | | for (int i = 0; i < m_Items.Length; i++)
|
| | | {
|
| | | if (items != null && i < items.Length)
|
| | | {
|
| | | m_Items[i].gameObject.SetActive(true);
|
| | | var count = packModel.GetItemCountByID(PackType.rptItem, items[i]);
|
| | | ItemCellModel cellModel = new ItemCellModel(items[i], false, (ulong)count);
|
| | | m_Items[i].Init(cellModel);
|
| | | m_Items[i].countText.color = count > 0 ? UIHelper.GetUIColor(TextColType.Green) : UIHelper.GetUIColor(TextColType.Red);
|
| | | m_Items[i].countText.gameObject.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Items[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnSelectItem(int index)
|
| | | {
|
| | | if (model.selectItemIndex == index)
|
| | | {
|
| | | var items = model.GetLevelUpItemByType(model.selectType);
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(items[model.selectItemIndex]);
|
| | | }
|
| | | else
|
| | | {
|
| | | model.selectItemIndex = index;
|
| | | DisplaySelectItem();
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplaySelectItem()
|
| | | {
|
| | | if (model.selectItemIndex >= 0 && model.selectItemIndex < m_Items.Length)
|
| | | {
|
| | | m_Select.transform.localPosition = m_Items[model.selectItemIndex].transform.localPosition;
|
| | | int[] items = model.GetLevelUpItemByType(model.selectType);
|
| | | selectItemCount = packModel.GetItemCountByID(PackType.rptItem, items[model.selectItemIndex]);
|
| | | }
|
| | | else
|
| | | {
|
| | | selectItemCount = 0;
|
| | | }
|
| | | }
|
| | |
|
| | | private int GetItemIndex(int type, int except = -1)
|
| | | {
|
| | | var items = model.GetLevelUpItemByType(type);
|
| | | var index = 0;
|
| | | for (int i = 0; i < items.Length; i++)
|
| | | {
|
| | | if (i == except)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var count = packModel.GetItemCountByID(PackType.rptItem, items[i]);
|
| | | if (count > 0)
|
| | | {
|
| | | index = i;
|
| | | }
|
| | | }
|
| | | return index;
|
| | | }
|
| | |
|
| | | private void DisplayProgress()
|
| | | {
|
| | | bool requireProgress = !model.IsGodWeaponUnlock(model.selectType)
|
| | | && !model.ContainsCondition(model.selectType);
|
| | | m_ContainerProgress.gameObject.SetActive(requireProgress);
|
| | | if (requireProgress)
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|
| | | var config = GodWeaponConfig.GetConfig(godWeaponInfo.type, godWeaponInfo.level);
|
| | | int progress = 100;
|
| | | if (config != null)
|
| | | {
|
| | | progress = (int)((float)godWeaponInfo.exp / config.NeedExp * 100);
|
| | | }
|
| | | m_Progress.text = StringUtility.Contact(progress, "%");
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayExp(bool immediatly)
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|
| | | if (godWeaponInfo != null && godWeaponInfo.level >= 1)
|
| | | {
|
| | | bool isMaxLevel = model.IsGodWeaponMaxLevel(model.selectType);
|
| | | m_ExpSlider.slider.minValue = 0;
|
| | | m_ExpSlider.slider.maxValue = 1;
|
| | | var config = GodWeaponConfig.GetConfig(model.selectType, godWeaponInfo.level);
|
| | | m_ExpSlider.stage = config.Lv;
|
| | | if (isMaxLevel)
|
| | | {
|
| | | m_ExpSlider.delay = 0;
|
| | | m_ExpSlider.ResetStage();
|
| | | m_ExpSlider.value = 1;
|
| | | m_Exp.text = Language.Get("L1053");
|
| | | }
|
| | | else
|
| | | {
|
| | | if (immediatly)
|
| | | {
|
| | | m_ExpSlider.delay = 0;
|
| | | m_ExpSlider.ResetStage();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ExpSlider.delay = m_SliderDelay;
|
| | | }
|
| | | m_Exp.text = StringUtility.Contact(godWeaponInfo.exp, "/", config.NeedExp);
|
| | | m_ExpSlider.value = (float)godWeaponInfo.exp / config.NeedExp;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayPreviewProperty()
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|
| | | if (godWeaponInfo != null)
|
| | | {
|
| | | var config = GodWeaponConfig.GetConfig(godWeaponInfo.type, godWeaponInfo.level + 1);
|
| | | m_UnlockCondition.text = Language.Get("L1050", config.Name);
|
| | | for (int i = 0; i < m_PreviewPropertys.Length; i++)
|
| | | {
|
| | | if (i < config.AttrType.Length)
|
| | | {
|
| | | m_PreviewPropertys[i].gameObject.SetActive(true);
|
| | | m_PreviewPropertys[i].DisplayUpper(config.AttrType[i], config.AttrNum[i]);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_PreviewPropertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayProperty()
|
| | | {
|
| | | bool isMaxLevel = model.IsGodWeaponMaxLevel(model.selectType);
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|
| | | currentPropertyDict.Clear();
|
| | | addPropertyDict.Clear();
|
| | | displayPropertys.Clear();
|
| | | var config = GodWeaponConfig.GetConfig(model.selectType, godWeaponInfo.level);
|
| | | for (int i = 0; i < config.AttrType.Length; i++)
|
| | | {
|
| | | currentPropertyDict.Add(config.AttrType[i], config.AttrNum[i]);
|
| | | if (!displayPropertys.Contains(config.AttrType[i]))
|
| | | {
|
| | | displayPropertys.Add(config.AttrType[i]);
|
| | | }
|
| | | }
|
| | | if (!isMaxLevel)
|
| | | {
|
| | | config = GodWeaponConfig.GetConfig(model.selectType, godWeaponInfo.level + 1);
|
| | | for (int i = 0; i < config.AttrType.Length; i++)
|
| | | {
|
| | | addPropertyDict.Add(config.AttrType[i], config.AttrNum[i]);
|
| | | if (!displayPropertys.Contains(config.AttrType[i]))
|
| | | {
|
| | | displayPropertys.Add(config.AttrType[i]);
|
| | | }
|
| | | }
|
| | | }
|
| | | for (int i = 0; i < m_Propertys.Length; i++)
|
| | | {
|
| | | if (i < displayPropertys.Count)
|
| | | {
|
| | | var key = displayPropertys[i];
|
| | | m_Propertys[i].gameObject.SetActive(true);
|
| | | var currentValue = 0;
|
| | | if (currentPropertyDict.ContainsKey(key))
|
| | | {
|
| | | currentValue = currentPropertyDict[key];
|
| | | }
|
| | | var addValue = 0;
|
| | | if (addPropertyDict.ContainsKey(key))
|
| | | {
|
| | | if (currentPropertyDict.ContainsKey(key))
|
| | | {
|
| | | addValue = addPropertyDict[key] - currentPropertyDict[key];
|
| | | }
|
| | | else
|
| | | {
|
| | | addValue = addPropertyDict[key];
|
| | | }
|
| | | }
|
| | | m_Propertys[i].DisplayAdd(displayPropertys[i], currentValue, addValue);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Propertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private int GetDefaultSelect()
|
| | | {
|
| | | var _type = model.godWeaponTypes[0];
|
| | | if (model.godWeaponTypes.Contains(model.gotoType))
|
| | | {
|
| | | _type = model.gotoType;
|
| | | model.gotoType = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | for (int i = 0; i < model.godWeaponTypes.Count; i++)
|
| | | {
|
| | | if (model.GetRedpointLightByType(model.godWeaponTypes[i]))
|
| | | {
|
| | | _type = model.godWeaponTypes[i];
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | return _type;
|
| | | }
|
| | |
|
| | | private void OnRefreshCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | var godWeaponCell = cell as GodWeaponCell;
|
| | | godWeaponCell.Display(cell.index);
|
| | | }
|
| | |
|
| | | private void DisplayGodWeaponTypes()
|
| | | {
|
| | | if (m_GodWeaponController.GetNumberOfCells(m_GodWeaponController.m_Scorller) == 0)
|
| | | {
|
| | | var list = model.godWeaponTypes;
|
| | | m_GodWeaponController.Refresh();
|
| | | for (int i = 0; i < list.Count; i++)
|
| | | {
|
| | | m_GodWeaponController.AddCell(ScrollerDataType.Header, list[i], OnGodWeaponSelect);
|
| | | }
|
| | | m_GodWeaponController.Restart();
|
| | | }
|
| | | else
|
| | | {
|
| | | m_GodWeaponController.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnGodWeaponSelect(CellView cell)
|
| | | {
|
| | | model.selectType = cell.index;
|
| | | }
|
| | |
|
| | | private void DisplayGodWeaponModel()
|
| | | {
|
| | | m_GodWeaponModel.gameObject.SetActive(true);
|
| | | UI3DTreasureExhibition.Instance.BeginShowGodWeapon(model.selectType, m_GodWeaponModel);
|
| | | }
|
| | |
|
| | | private bool TryGetGodWeaponType(int skillId, out int type, out int index)
|
| | | {
|
| | | type = 0;
|
| | | index = 0;
|
| | | foreach (var key in model.godWeaponSkillDict.Keys)
|
| | | {
|
| | | var dict = model.godWeaponSkillDict[key];
|
| | | index = 0;
|
| | | foreach (var level in dict.Keys)
|
| | | {
|
| | | if (dict[level] == skillId)
|
| | | {
|
| | | type = key;
|
| | | return true;
|
| | | }
|
| | | index++;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | private int HammerEffectId(int index)
|
| | | {
|
| | | return index == 0 ? 1117 : index == 1 ? 1118 : 1119;
|
| | | }
|
| | |
|
| | | private void PressHammer()
|
| | | {
|
| | | if (selectItemCount <= 0)
|
| | | {
|
| | | OnSelectItem(GetItemIndex(model.selectType));
|
| | | if (selectItemCount <= 0)
|
| | | {
|
| | | if (!WindowCenter.Instance.IsOpen<GetItemPathWin>())
|
| | | {
|
| | | var items = model.GetLevelUpItemByType(model.selectType);
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(items[model.selectItemIndex]);
|
| | | if (!model.IsGodWeaponHammerItem(3, items[model.selectItemIndex])
|
| | | && !NewBieCenter.Instance.completeGuidesBuf.Contains(85))
|
| | | {
|
| | | NewBieCenter.Instance.StartNewBieGuide(85);
|
| | | }
|
| | | }
|
| | | return;
|
| | | }
|
| | | }
|
| | | selectItemCount--;
|
| | | Hammer();
|
| | | }
|
| | |
|
| | | private void Hammer()
|
| | | {
|
| | | var godWeaponInfo = model.GetGodWeaponInfo(model.selectType);
|
| | | bool requireSwitchItem = false;
|
| | | if (godWeaponInfo != null)
|
| | | {
|
| | | var items = model.GetLevelUpItemByType(godWeaponInfo.type);
|
| | | if (model.selectItemIndex < items.Length)
|
| | | {
|
| | | var count = packModel.GetItemCountByID(PackType.rptItem, items[model.selectItemIndex]);
|
| | | if (count > 0)
|
| | | {
|
| | | EffectMgr.Instance.PlayUIEffect(HammerEffectId(model.selectItemIndex), 2500, m_Items[model.selectItemIndex].transform, false);
|
| | | }
|
| | | requireSwitchItem = count == 1;
|
| | | }
|
| | | }
|
| | | model.HammerGodWeapon(model.selectType);
|
| | | if (requireSwitchItem)
|
| | | {
|
| | | OnSelectItem(GetItemIndex(model.selectType, model.selectItemIndex));
|
| | | }
|
| | | }
|
| | |
|
| | | bool HandleAchievement()
|
| | | {
|
| | | if (AchievementGoto.achievementType == AchievementGoto.GodWeapon)
|
| | | {
|
| | | var _cfg = Config.Instance.Get<SuccessConfig>(AchievementGoto.guideAchievementId);
|
| | | if (_cfg != null)
|
| | | var config = Config.Instance.Get<SuccessConfig>(AchievementGoto.guideAchievementId);
|
| | | if (config != null)
|
| | | {
|
| | | var _type = _cfg.Condition[0];
|
| | | if (model.GetRedpointLightByType(_type))
|
| | | var type = config.Condition[0];
|
| | | if (model.GetRedpointLightByType(type))
|
| | | {
|
| | | SwitchGodWeapon(_type);
|
| | | UpdateUseItem(model.selectType);
|
| | | ShowGodWeaponModel(model.selectType);
|
| | | UpdateItems(GetItemIndex(model.selectType));
|
| | | var _effect = AchievementGuideEffectPool.Require(1);
|
| | | _effect.transform.SetParentEx(m_TemperBtn.transform, Vector3.zero, Vector3.zero, Vector3.one);
|
| | | model.selectType = type;
|
| | | var effect = AchievementGuideEffectPool.Require(1);
|
| | | effect.transform.SetParentEx(m_Hammer.transform, Vector3.zero, Vector3.zero, Vector3.one);
|
| | | return true;
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | | [Serializable]
|
| | | public class GodWeaponProperty
|
| | | {
|
| | | [SerializeField] Text m_PropertyName;
|
| | | public Text propertyName
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_PropertyName;
|
| | | }
|
| | | }
|
| | | [SerializeField] Text m_PropertyValue;
|
| | | public Text propertyValue
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_PropertyValue;
|
| | | }
|
| | | }
|
| | | [SerializeField] Text m_PropertyUpValue;
|
| | | public Text propertyUpValue
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_PropertyUpValue;
|
| | | }
|
| | | }
|
| | |
|
| | | public void SetActive(bool _active)
|
| | | {
|
| | | m_PropertyName.gameObject.SetActive(_active);
|
| | | m_PropertyUpValue.gameObject.SetActive(_active);
|
| | | m_PropertyValue.gameObject.SetActive(_active);
|
| | | }
|
| | | }
|
| | | [Serializable]
|
| | | public class GodWeaponSkill
|
| | | {
|
| | | [SerializeField] Text m_SkillName;
|
| | | public Text skillName
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_SkillName;
|
| | | }
|
| | | }
|
| | | [SerializeField] Image m_SkillIcon;
|
| | | public Image skillIcon
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_SkillIcon;
|
| | | }
|
| | | }
|
| | | [SerializeField] RectTransform m_SkillLock;
|
| | | public RectTransform skillLock
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_SkillLock;
|
| | | }
|
| | | }
|
| | | [SerializeField] Button m_SkillBtn;
|
| | | public Button skillBtn
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_SkillBtn;
|
| | | }
|
| | | }
|
| | | [SerializeField] RectTransform m_Container;
|
| | | public RectTransform container
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_Container;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | break;
|
| | | case FuncPowerType.GodWeapon:
|
| | | MagicianData data = ModelCenter.Instance.GetModel<MagicianModel>().GetMagicianData((int)MagicianType.AttackMag);
|
| | | GodWeaponInfo data = ModelCenter.Instance.GetModel<MagicianModel>().GetGodWeaponInfo(2);
|
| | | if (data != null)
|
| | | selfValue = data.level;
|
| | | targetValue = viewPlayerData.rolePlusData.GetGodWeaponLevel((int)MagicianType.AttackMag);
|
| | | targetValue = viewPlayerData.rolePlusData.GetGodWeaponLevel(2);
|
| | | break;
|
| | | case FuncPowerType.Rune:
|
| | | selfValue = ModelCenter.Instance.GetModel<RuneModel>().GetHoleRuneCnt();
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | | var config = GodWeaponConfig.GetGodWeaponCfgByTypeLv(ActivateShow.godWeaponType, _lv);
|
| | | var config = GodWeaponConfig.GetConfig(ActivateShow.godWeaponType, _lv);
|
| | | SkillDetails.ShowSkillDetails(config.SkillID, SkillDetails.SkillSourceType.MagicianSkill, 0, config.Name, string.Empty);
|
| | | break;
|
| | | }
|
| | |
| | | Def_GoodsSaleState_Special // 特价商品 6
|
| | | }
|
| | |
|
| | | enum MagicianType
|
| | | {
|
| | | LifeMag = 1,
|
| | | AttackMag,
|
| | | CritMag,
|
| | | StrikeMag,
|
| | | }
|
| | |
|
| | | public enum MakeType
|
| | | {
|
| | | Def_treasureSkillEquip = 1, // 法宝技能升级
|
| | |
| | | Realm = 12, //境界
|
| | | Fairy = 15,// 仙盟
|
| | | FairyTask = 16,
|
| | | Magician = 20, //神兵
|
| | | GodWeapon = 20, //神兵
|
| | | SelfBoss = 22,//个人Boss
|
| | | Title = 24, //称号
|
| | | Talent = 149,//天赋技能
|