Exemplo n.º 1
0
 private bool OnGetMainDataRsp(GetMainDataRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
         this.playerData.initByGetMainDataRsp = true;
         base.UpdateField <string>(rsp.get_nicknameSpecified(), ref this.playerData.nickname, rsp.get_nickname(), null);
         base.UpdateField <int>(rsp.get_levelSpecified(), ref this.playerData.teamLevel, (int)rsp.get_level(), new Action <int, int>(this.playerData.OnLevelChange));
         base.UpdateField <int>(rsp.get_expSpecified(), ref this.playerData.teamExp, (int)rsp.get_exp(), null);
         base.UpdateField <int>(rsp.get_hcoinSpecified(), ref this.playerData.hcoin, (int)rsp.get_hcoin(), new Action <int, int>(this.playerData.OnCoinChange));
         base.UpdateField <int>(rsp.get_scoinSpecified(), ref this.playerData.scoin, (int)rsp.get_scoin(), new Action <int, int>(this.playerData.OnCoinChange));
         base.UpdateField <int>(rsp.get_staminaSpecified(), ref this.playerData.stamina, (int)rsp.get_stamina(), null);
         base.UpdateField <int>(rsp.get_stamina_recover_left_timeSpecified(), ref this.playerData.staminaRecoverLeftTime, (int)rsp.get_stamina_recover_left_time(), new Action <int, int>(this.playerData.OnStaminaRecoverTimeChange));
         base.UpdateField <int>(rsp.get_stamina_recover_config_timeSpecified(), ref this.playerData.staminaRecoverConfigTime, (int)rsp.get_stamina_recover_config_time(), new Action <int, int>(this.playerData.OnStaminaRecoverTimeChange));
         base.UpdateField <int>(rsp.get_skill_pointSpecified(), ref this.playerData.skillPoint, (int)rsp.get_skill_point(), null);
         base.UpdateField <int>(rsp.get_skill_point_recover_left_timeSpecified(), ref this.playerData.skillPointRecoverLeftTime, (int)rsp.get_skill_point_recover_left_time(), new Action <int, int>(this.playerData.OnSkillPointRecoverTimeChange));
         base.UpdateField <int>(rsp.get_skill_point_recover_config_timeSpecified(), ref this.playerData.skillPointRecoverConfigTime, (int)rsp.get_skill_point_recover_config_time(), new Action <int, int>(this.playerData.OnSkillPointRecoverTimeChange));
         base.UpdateField <int>(rsp.get_skill_point_limitSpecified(), ref this.playerData.skillPointLimit, (int)rsp.get_skill_point_limit(), null);
         base.UpdateField <int>(rsp.get_equipment_size_limitSpecified(), ref this.playerData.equipmentSizeLimit, (int)rsp.get_equipment_size_limit(), null);
         base.UpdateField <int>(rsp.get_friends_pointSpecified(), ref this.playerData.friendsPoint, (int)rsp.get_friends_point(), null);
         base.UpdateField <string>(rsp.get_self_descSpecified(), ref this.playerData.selfDesc, rsp.get_self_desc(), null);
     }
     return(false);
 }