| | |
| | | |
| | | //对应 BattlePreSetType 战斗类型 : 全局方案ID |
| | | Dictionary<int, int> battlePreSetDict = new Dictionary<int, int>(); |
| | | public event Action OnBattelePresetEvent; |
| | | |
| | | //所有预设方案的保存信息 全局方案ID :子功能类型(配表):子方案ID |
| | | Dictionary<int, Dictionary<int, int>> m_FuncPresetSaveDict = new Dictionary<int, Dictionary<int, int>>(); |
| | | public event Action OnFuncPresetUseDataEvent; |
| | | public event Action<int> OnFuncPresetUseDataEvent; //0 更换子方案,1 更换全局方案,2 解锁/更改名 |
| | | |
| | | public const int GlobalDefaultPresetID = 1; //默认全局方案ID |
| | | public const int FuncDefaultPresetID = 1; //默认子功能方案ID |
| | |
| | | } |
| | | } |
| | | |
| | | OnFuncPresetUseDataEvent?.Invoke(); |
| | | OnFuncPresetUseDataEvent?.Invoke(2); |
| | | } |
| | | |
| | | //每个全局方案的存储信息 |
| | |
| | | m_FuncPresetSaveDict[batPreset.BatPresetID][funcPreset.FuncPresetType] = funcPreset.FuncPresetID; |
| | | } |
| | | } |
| | | OnFuncPresetUseDataEvent?.Invoke(); |
| | | OnFuncPresetUseDataEvent?.Invoke(0); |
| | | } |
| | | |
| | | //当前战斗功能的全局方案ID使用情况 |
| | |
| | | { |
| | | battlePreSetDict[netPack.BatPresetList[i].BatPresetType] = netPack.BatPresetList[i].BatPresetID; |
| | | } |
| | | OnBattelePresetEvent?.Invoke(); |
| | | OnFuncPresetUseDataEvent?.Invoke(1); |
| | | } |
| | | |
| | | //根据战斗获取全局方案ID,如果取不到默认方案1 |