ActShengBingPushCtrl.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActShengBingPushCtrl : MsgController<ActShengBingPush>
  6. {
  7. protected override void OnProcess(ActShengBingPush message, object context)
  8. {
  9. PartnersData.Instance.ClearJibanActive();
  10. foreach (var jiban in message.jiban)
  11. {
  12. PartnersData.Instance.SetJibanActiveState(jiban.jbId, jiban.level);
  13. }
  14. PartnersData.Instance.UsePlanId = message.useSuit;
  15. PartnersService.Instance.InitPartnerMap(message.shengbing);
  16. PartnersService.Instance.InitPlanMap(message.suit);
  17. PartnersService.Instance.UpdateCurUpPartnerMap();
  18. //
  19. PartnersData.Instance.ClearSbUpMap();
  20. foreach (var cao in message.shangzhen)
  21. {
  22. PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId);
  23. }
  24. PartnersData.Instance.UpdateUpSbPosMap();
  25. }
  26. }
  27. }