| | |
| | | Utils.BeginObjectRegister(typeof(E_ModelResType), L, translator, 0, 0, 0, 0); |
| | | Utils.EndObjectRegister(typeof(E_ModelResType), L, translator, null, null, null, null, null); |
| | | |
| | | Utils.BeginClassRegister(typeof(E_ModelResType), L, null, 8, 0, 0); |
| | | Utils.BeginClassRegister(typeof(E_ModelResType), L, null, 9, 0, 0); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Weapon", E_ModelResType.Weapon); |
| | | |
| | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Secondary", E_ModelResType.Secondary); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Hand", E_ModelResType.Hand); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Spirit", E_ModelResType.Spirit); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); |
| | | |
| | |
| | | { |
| | | translator.PushE_ModelResType(L, E_ModelResType.Hand); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "Spirit")) |
| | | { |
| | | translator.PushE_ModelResType(L, E_ModelResType.Spirit); |
| | | } |
| | | else |
| | | { |
| | | return LuaAPI.luaL_error(L, "invalid string for E_ModelResType!"); |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: be7e2426fca728c4eaf7165f51ea3a9f |
| | | timeCreated: 1562331274 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "makeDruglist", _g_get_makeDruglist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlayBetterEquipEffect", _g_get_isPlayBetterEquipEffect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "guardGetPathId", _g_get_guardGetPathId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "spiritWeaponPathIds", _g_get_spiritWeaponPathIds); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "wingsGetPathIdDict", _g_get_wingsGetPathIdDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonUseDict", _g_get_dungeonUseDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lookLineIndex", _g_get_lookLineIndex); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_guardGetPathId(RealStatePtr L) |
| | | static int _g_get_spiritWeaponPathIds(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.guardGetPathId); |
| | | translator.Push(L, gen_to_be_invoked.spiritWeaponPathIds); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 44a79d6b36594754c8a1d7745278949d |
| | | timeCreated: 1562249796 |
| | | timeCreated: 1562338101 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TrialDungeonModel), SnxxzUITrialDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.EquipFightPower), SnxxzUIEquipFightPowerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.EquipModel), SnxxzUIEquipModelWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairylandCeremonyModel), SnxxzUIFairylandCeremonyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDecomposeModel), SnxxzUIFashionDecomposeModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoinTaskTipModel), CoinTaskTipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MainRedDot), SnxxzUIMainRedDotWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ExpertSkillSelectWin), SnxxzUIExpertSkillSelectWinWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SkillModel), SnxxzUISkillModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(JumpUIType), JumpUITypeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(WorldMapSkip), WorldMapSkipWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(RedPointState), RedPointStateWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TeamInviteType), TeamInviteTypeWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(TeamInviteType), TeamInviteTypeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TeammatePrepareState), TeammatePrepareStateWrap.__Register); |
| | | |
| | | |
| | |
| | | <type fullname="Snxxz.UI.DungeonUseBuffModel" preserve="all"/> |
| | | <type fullname="IceLodeStarAwardClass" preserve="all"/> |
| | | <type fullname="Snxxz.UI.TrialDungeonModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipFightPower" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipGemModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.EquipStrengthModel" preserve="all"/> |
| | |
| | | using System.Linq; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | |
| | | refreshItemSumUseCountEvent(itemId); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }
|
| | |
|
| | | #endregion |
| | | |
| | |
|
| | | #region 玩家装备特殊逻辑 |
| | | public int guardGetPathId { get; private set; } |
| | | public Dictionary<int, Dictionary<int, int>> spiritWeaponPathIds { get; private set; } |
| | | public Dictionary<int, int> wingsGetPathIdDict { get; private set; } |
| | | public Dictionary<int, List<int>> dungeonUseDict { get; private set; } |
| | | void ParseConfig() |
| | | { |
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("WingYuPeiHQTJ"); |
| | | guardGetPathId = int.Parse(funcConfig.Numerical3); |
| | | wingsGetPathIdDict = ConfigParse.GetDic<int, int>(funcConfig.Numerical4); |
| | | FuncConfigConfig funcConfig = FuncConfigConfig.Get("WingYuPeiHQTJ");
|
| | | spiritWeaponPathIds = new Dictionary<int, Dictionary<int, int>>();
|
| | | var splits = funcConfig.Numerical3.Split('|');
|
| | | for (int i = 0; i < splits.Length; i++)
|
| | | {
|
| | | var tempString = splits[i];
|
| | | var matches = Regex.Matches(tempString.Trim(), "\\d+");
|
| | | var equipPlace = int.Parse(matches[0].Value);
|
| | | var job = int.Parse(matches[1].Value);
|
| | | var itemId = int.Parse(matches[2].Value);
|
| | |
|
| | | if (!spiritWeaponPathIds.ContainsKey(equipPlace))
|
| | | {
|
| | | spiritWeaponPathIds[equipPlace] = new Dictionary<int, int>();
|
| | | }
|
| | |
|
| | | spiritWeaponPathIds[equipPlace][job] = itemId;
|
| | | }
|
| | | |
| | | FuncConfigConfig copyItemBulletWindow = FuncConfigConfig.Get("CopyItemBulletWindow"); |
| | | JsonData copyWinData = JsonMapper.ToObject(copyItemBulletWindow.Numerical1); |
| | | dungeonUseDict = new Dictionary<int, List<int>>(); |
| | |
| | | int playerJob = PlayerDatas.Instance.baseData.Job; |
| | | switch ((RoleEquipType)equipPlace) |
| | | { |
| | | case RoleEquipType.Guard: |
| | | return guardGetPathId; |
| | | case RoleEquipType.Wing: |
| | | if (wingsGetPathIdDict.ContainsKey(playerJob)) |
| | | { |
| | | return wingsGetPathIdDict[playerJob]; |
| | | } |
| | | break; |
| | | case RoleEquipType.Guard:
|
| | | case RoleEquipType.PeerlessWeapon1: |
| | | case RoleEquipType.PeerlessWeapon2: |
| | | case RoleEquipType.Wing:
|
| | | return spiritWeaponPathIds[equipPlace][playerJob]; |
| | | default:
|
| | | return 0;
|
| | | } |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | private void UpdateSecond() |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | packModel.SetLookIndex(guid);
|
| | | packModel.RefreshBagInfo();
|
| | | ItemTipUtility.Show(guid);
|
| | | }
|
| | | }
|
| | |
|