12345678910111213141516171819202122232425 |
- 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);
- }
- PartnersService.Instance.InitPartnerMap(message.shengbing);
- //
- PartnersData.Instance.ClearSbUpMap();
- foreach (var cao in message.shangzhen)
- {
- PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId);
- }
- PartnersData.Instance.UpdateUpSbPosMap();
- }
- }
- }
|