using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActShengBingPushCtrl : MsgController { 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(); } } }