public void MergeFrom(DressUpUnlockRulePB other) { if (other == null) { return; } if (other.ItemId != 0) { ItemId = other.ItemId; } if (other.ItemType != 0) { ItemType = other.ItemType; } if (other.Player != 0) { Player = other.Player; } moneyClaim_.Add(other.moneyClaim_); if (other.clothesGoal_ != null) { if (clothesGoal_ == null) { clothesGoal_ = new global::Com.Proto.ClothesGoalPB(); } ClothesGoal.MergeFrom(other.ClothesGoal); } if (other.UnlockDesc.Length != 0) { UnlockDesc = other.UnlockDesc; } if (other.MornImage.Length != 0) { MornImage = other.MornImage; } if (other.NoonImage.Length != 0) { NoonImage = other.NoonImage; } if (other.AfternoonImage.Length != 0) { AfternoonImage = other.AfternoonImage; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { ItemId = input.ReadSInt32(); break; } case 16: { itemType_ = (global::DressUpTypePB)input.ReadEnum(); break; } case 24: { player_ = (global::PlayerPB)input.ReadEnum(); break; } case 34: { moneyClaim_.AddEntriesFrom(input, _map_moneyClaim_codec); break; } case 42: { if (clothesGoal_ == null) { clothesGoal_ = new global::Com.Proto.ClothesGoalPB(); } input.ReadMessage(clothesGoal_); break; } case 50: { UnlockDesc = input.ReadString(); break; } case 58: { MornImage = input.ReadString(); break; } case 66: { NoonImage = input.ReadString(); break; } case 74: { AfternoonImage = input.ReadString(); break; } } } }