public void MergeFrom(ReturnGameResult other) { if (other == null) { return; } if (other.AllMoney != 0) { AllMoney = other.AllMoney; } if (other.GetMoney != 0) { GetMoney = other.GetMoney; } if (other.FreeCount != 0) { FreeCount = other.FreeCount; } if (other.FreeRound != 0) { FreeRound = other.FreeRound; } if (other.gameResult_ != null) { if (gameResult_ == null) { gameResult_ = new global::Pb.GameResult(); } GameResult.MergeFrom(other.GameResult); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { AllMoney = input.ReadInt32(); break; } case 16: { GetMoney = input.ReadInt32(); break; } case 24: { FreeCount = input.ReadInt32(); break; } case 32: { FreeRound = input.ReadInt32(); break; } case 42: { if (gameResult_ == null) { gameResult_ = new global::Pb.GameResult(); } input.ReadMessage(gameResult_); break; } } } }