| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年12月1日
|
| | | // [ Date ]: 2026年3月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int Top;
|
| | | public int[] MyColor;
|
| | | public int[] OtherColor;
|
| | | public int SortIndex;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | int.TryParse(OtherColorStringArray[i],out OtherColor[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[19],out SortIndex); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年11月25日 |
| | | // [ Date ]: 2026年3月17日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int[] InitAttrValueList; |
| | | public int[] AttrPerStarAddList; |
| | | public string GetWayString; |
| | | public int SortIndex; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | |
| | | } |
| | | |
| | | GetWayString = tables[14]; |
| | | |
| | | int.TryParse(tables[15],out SortIndex); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: Wednesday, November 19, 2025
|
| | | // [ Date ]: 2026年3月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int[] InitAttrValueList;
|
| | | public int[] AttrPerStarAddList;
|
| | | public string GetWayString;
|
| | | public int SortIndex;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | GetWayString = tables[14];
|
| | |
|
| | | int.TryParse(tables[15],out SortIndex); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年11月16日
|
| | | // [ Date ]: 2026年3月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int[] InitAttrValueList;
|
| | | public int[] AttrPerStarAddList;
|
| | | public string GetWayString;
|
| | | public int SortIndex;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | GetWayString = tables[13];
|
| | |
|
| | | int.TryParse(tables[14],out SortIndex); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: Saturday, March 14, 2026
|
| | | // [ Date ]: 2026年3月17日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int EffValue;
|
| | | public int EffPerStarAdd;
|
| | | public string GetWayString;
|
| | | public int SortIndex;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | | int.TryParse(tables[17],out EffPerStarAdd);
|
| | |
|
| | | GetWayString = tables[18];
|
| | |
|
| | | int.TryParse(tables[19],out SortIndex); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | int[] GetInitAttrValueList(int id);
|
| | | int[] GetAttrPerStarAddList(int id);
|
| | | string GetGetWayString(int id);
|
| | | int GetSortIndex(int id);
|
| | | } |
| | |
| | | { |
| | | return ChatBubbleBoxConfig.Get(id).GetWayString; |
| | | } |
| | | |
| | | public int GetSortIndex(int id) |
| | | { |
| | | return ChatBubbleBoxConfig.Get(id).SortIndex; |
| | | } |
| | | } |
| | |
| | | { |
| | | return PlayerFaceConfig.Get(id).GetWayString; |
| | | } |
| | | |
| | | public int GetSortIndex(int id) |
| | | { |
| | | return PlayerFaceConfig.Get(id).SortIndex; |
| | | } |
| | | } |
| | |
| | | { |
| | | return PlayerFacePicConfig.Get(id).GetWayString; |
| | | } |
| | | public int GetSortIndex(int id) |
| | | { |
| | | return PlayerFacePicConfig.Get(id).SortIndex; |
| | | } |
| | | } |
| | |
| | | return string.Empty; |
| | | return handler.GetGetWayString(id); |
| | | } |
| | | public int GetSortIndex(PhantasmPavilionType type, int id) |
| | | { |
| | | if (!TryGetHandlerValue(type, out var handler)) |
| | | return 0; |
| | | if (!Has(type, id)) |
| | | return 0; |
| | | return handler.GetSortIndex(id); |
| | | } |
| | | } |
| | |
| | | Debug.LogError($"TitleConfig.Get(id) is null, id: {id}"); |
| | | return false; |
| | | } |
| | | if(cfg.EffType > 0) |
| | | if (cfg.EffType > 0) |
| | | return true; |
| | | } |
| | | if (!Has(type, id)) |
| | |
| | | |
| | | public int Cmp(int a, int b, PhantasmPavilionType type) |
| | | { |
| | | // 获取 a 和 b 的解锁状态 |
| | | // 1. 获取 a 和 b 的解锁状态 |
| | | int stateA = (int)GetUnLockState(type, a); |
| | | int stateB = (int)GetUnLockState(type, b); |
| | | |
| | |
| | | int priorityA = stateA == 2 ? 0 : (stateA == 1 ? 1 : 2); |
| | | int priorityB = stateB == 2 ? 0 : (stateB == 1 ? 1 : 2); |
| | | |
| | | |
| | | // 优先判断状态 |
| | | if (priorityA != priorityB) |
| | | { |
| | | return priorityA.CompareTo(priorityB); |
| | | } |
| | | |
| | | // 2. 状态相同的话,获取两者的 SortIndex |
| | | int sortIndexA = GetSortIndex(type, a); |
| | | int sortIndexB = GetSortIndex(type, b); |
| | | |
| | | if (sortIndexA != sortIndexB) |
| | | { |
| | | return sortIndexA.CompareTo(sortIndexB); |
| | | } |
| | | |
| | | // 3. 状态和 SortIndex 都相同的话,按唯一 ID 排序 |
| | | return a.CompareTo(b); |
| | | } |
| | | |
| | |
| | | { |
| | | return ModelConfig.Get(id).GetWayString; |
| | | } |
| | | |
| | | public int GetSortIndex(int id) |
| | | { |
| | | return ModelConfig.Get(id).SortIndex; |
| | | } |
| | | } |
| | |
| | | { |
| | | return TitleConfig.Get(id).GetWayString; |
| | | } |
| | | |
| | | public int GetSortIndex(int id) |
| | | { |
| | | return TitleConfig.Get(id).SortIndex; |
| | | } |
| | | |
| | | } |