ActShengBingPushCtrl.cs 751 B

123456789101112131415161718192021
  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.ClearJibanRwd();
  10. foreach (var jiban in message.jiban)
  11. {
  12. PartnersData.Instance.SetJibanRwdState(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. }
  20. }