//-------------------------------------------------------- // [Author]: Alee // [ Date ]: 2021年7月1日 //-------------------------------------------------------- using LitJson; using System.Collections.Generic; using UnityEngine; using System.Linq; //分部类 public partial class ILZhanlingConfig : IConfigPostProcess { //战令类型: 所需值 :ZhanlingId public static Dictionary> typeToIDDict = new Dictionary>(); public void OnConfigParseCompleted() { if (!typeToIDDict.ContainsKey(ZhanlingType)) { typeToIDDict[ZhanlingType] = new Dictionary(); } typeToIDDict[ZhanlingType][NeedValue] = ZhanlingId; } public static Dictionary GetTypeToIDDict(int zhanLingType) { return typeToIDDict[zhanLingType]; } public static Dictionary> GetAllTypeToIDListDict() { return typeToIDDict; } }