//-------------------------------------------------------- // [Author]: Alee // [ Date ]: 2021年7月1日 //-------------------------------------------------------- using LitJson; using System.Collections.Generic; using UnityEngine; using System.Linq; //分部类 public partial class ILChampionshipTimeConfig : IConfigPostProcess { //状态对应ID public static Dictionary stateToIDs = new Dictionary(); public void OnConfigParseCompleted() { stateToIDs[StateValue] = ID; } public static int GetBattleID(int state) { if (stateToIDs.ContainsKey(state)) { return stateToIDs[state]; } return 0; } }