12345678910111213141516171819202122232425262728 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActShengBingPushCtrl : MsgController<ActShengBingPush>
- {
- protected override void OnProcess(ActShengBingPush message, object context)
- {
- PartnersData.Instance.ClearJibanActive();
- foreach (var jiban in message.jiban)
- {
- PartnersData.Instance.SetJibanActiveState(jiban.jbId, jiban.level);
- }
- PartnersData.Instance.UsePlanId = message.useSuit;
- PartnersService.Instance.InitPartnerMap(message.shengbing);
- PartnersService.Instance.InitPlanMap(message.suit);
- PartnersService.Instance.UpdateCurUpPartnerMap();
- //
- PartnersData.Instance.ClearSbUpMap();
- foreach (var cao in message.shangzhen)
- {
- PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId);
- }
- PartnersData.Instance.UpdateUpSbPosMap();
- }
- }
- }
|