public void MergeFrom(CMLoginReply other) { if (other == null) { return; } if (other.playerInfo_ != null) { if (playerInfo_ == null) { playerInfo_ = new global::Message.PlayerInfo(); } PlayerInfo.MergeFrom(other.PlayerInfo); } if (other.IsInBattle != false) { IsInBattle = other.IsInBattle; } if (other.battleServerInfo_ != null) { if (battleServerInfo_ == null) { battleServerInfo_ = new global::Message.BattleServerInfo(); } BattleServerInfo.MergeFrom(other.BattleServerInfo); } }
public void MergeFrom(CMPlayerInfoSync other) { if (other == null) { return; } if (other.info_ != null) { if (info_ == null) { info_ = new global::Message.PlayerInfo(); } Info.MergeFrom(other.Info); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (info_ == null) { info_ = new global::Message.PlayerInfo(); } input.ReadMessage(info_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (playerInfo_ == null) { playerInfo_ = new global::Message.PlayerInfo(); } input.ReadMessage(playerInfo_); break; } case 16: { IsInBattle = input.ReadBool(); break; } case 26: { if (battleServerInfo_ == null) { battleServerInfo_ = new global::Message.BattleServerInfo(); } input.ReadMessage(battleServerInfo_); break; } } } }