ActJobClassCurrentClassPushCtrl.cs 575 B

123456789101112131415161718
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActJobClassCurrentClassPushCtrl : MsgController<ActJobClassCurrentClassPush>
  6. {
  7. protected override void OnProcess(ActJobClassCurrentClassPush message, object context)
  8. {
  9. PlayerData.Instance.JobId = message.currentClass;
  10. if (message.classHistory != null)
  11. {
  12. PlayerData.Instance.JobHistoryList.Clear();
  13. PlayerData.Instance.JobHistoryList.AddRange(message.classHistory);
  14. }
  15. }
  16. }
  17. }