public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { ID = input.ReadInt32(); break; } case 18: { Prefab = input.ReadString(); break; } case 24: { Type = (global::Config.BoxType) input.ReadEnum(); break; } case 34: case 32: { lose_.AddEntriesFrom(input, _repeated_lose_codec); break; } case 42: { loseCount_.AddEntriesFrom(input, _map_loseCount_codec); break; } case 50: { if (specialTest_ == null) { SpecialTest = new global::Config.IntArray2D(); } input.ReadMessage(SpecialTest); break; } } } }
public void MergeFrom(Box other) { if (other == null) { return; } if (other.ID != 0) { ID = other.ID; } if (other.Prefab.Length != 0) { Prefab = other.Prefab; } if (other.Type != global::Config.BoxType.None) { Type = other.Type; } lose_.Add(other.lose_); loseCount_.Add(other.loseCount_); if (other.specialTest_ != null) { if (specialTest_ == null) { SpecialTest = new global::Config.IntArray2D(); } SpecialTest.MergeFrom(other.SpecialTest); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }