public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (player_ == null) { player_ = new global::Protos.PlayerResponse(); } input.ReadMessage(player_); break; } case 18: { npcs_.AddEntriesFrom(input, _map_npcs_codec); break; } case 26: { chests_.AddEntriesFrom(input, _repeated_chests_codec); break; } } } }
public void MergeFrom(BigMessageResponse other) { if (other == null) { return; } if (other.player_ != null) { if (player_ == null) { player_ = new global::Protos.PlayerResponse(); } Player.MergeFrom(other.Player); } npcs_.Add(other.npcs_); chests_.Add(other.chests_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }