ActLongDanPushCtrl.cs 824 B

12345678910111213141516171819202122
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActLongDanPushCtrl : MsgController<ActLongDanPush>
  6. {
  7. protected override void OnProcess(ActLongDanPush message, object context)
  8. {
  9. if (message != null)
  10. {
  11. DragonEggData.Instance.DragonTreasureId = message.treasureId;
  12. DragonEggData.Instance.DragonTreasureSocre = message.progress;
  13. DragonEggData.Instance.Level = message.level;
  14. DragonEggData.Instance.Exp = message.exp;
  15. DragonEggData.Instance.UpLvTime = (long)message.upLvTime * 1000;
  16. DragonEggData.Instance.WatchADCount = message.bill;
  17. DragonEggData.Instance.WatchADCdTime = (long)message.time*1000;
  18. }
  19. }
  20. }
  21. }