12345678910111213141516171819202122232425262728 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActJobClassCurrentPlanPushCtrl : MsgController<ActJobClassCurrentPlanPush>
- {
- protected override void OnProcess(ActJobClassCurrentPlanPush message, object context)
- {
- PlayerData.Instance.CurPlanIndex = message.currentPlan;
- if (message.runePlan?.Count > 0)
- {
- var runePlanMap = PlayerData.Instance.RunePlanMap;
- foreach (var item in message.runePlan)
- {
- if (runePlanMap.ContainsKey(item.id))
- {
- runePlanMap[item.id] = item;
- }
- else
- {
- runePlanMap.Add(item.id, item);
- }
- }
- }
- }
- }
- }
|