ActJobClassAllPointPushCtrl.cs 854 B

12345678910111213141516171819202122232425262728
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActJobClassAllPointPushCtrl : MsgController<ActJobClassAllPointPush>
  6. {
  7. protected override void OnProcess(ActJobClassAllPointPush message, object context)
  8. {
  9. PlayerData.Instance.AllPoint = message.allPoint;
  10. if (message.runePlan != null)
  11. {
  12. var runePlanMap = PlayerData.Instance.RunePlanMap;
  13. foreach (var item in message.runePlan)
  14. {
  15. if (runePlanMap.ContainsKey(item.id))
  16. {
  17. runePlanMap[item.id] = item;
  18. }
  19. else
  20. {
  21. runePlanMap.Add(item.id, item);
  22. }
  23. }
  24. }
  25. }
  26. }
  27. }