ActShengBingPushCtrl.cs 842 B

12345678910111213141516171819202122232425
  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. PartnersService.Instance.InitPartnerMap(message.shengbing);
  15. //
  16. PartnersData.Instance.ClearSbUpMap();
  17. foreach (var cao in message.shangzhen)
  18. {
  19. PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId);
  20. }
  21. PartnersData.Instance.UpdateUpSbPosMap();
  22. }
  23. }
  24. }