using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActJobClassCurrentPlanPushCtrl : MsgController { 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); } } } } } }