public void MergeFrom(ClaimChamberRewardsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.state_ != null)
     {
         if (state_ == null)
         {
             State = new global::WUProtos.Data.ChamberState();
         }
         State.MergeFrom(other.State);
     }
     if (other.playerSnapshot_ != null)
     {
         if (playerSnapshot_ == null)
         {
             PlayerSnapshot = new global::WUProtos.Data.Client.ClientPlayerSnapshot();
         }
         PlayerSnapshot.MergeFrom(other.PlayerSnapshot);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        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: {
                    Status = (global::WUProtos.Enums.ChallengeRpcStatus)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (state_ == null)
                    {
                        State = new global::WUProtos.Data.ChamberState();
                    }
                    input.ReadMessage(State);
                    break;
                }

                case 26: {
                    if (playerSnapshot_ == null)
                    {
                        PlayerSnapshot = new global::WUProtos.Data.Client.ClientPlayerSnapshot();
                    }
                    input.ReadMessage(PlayerSnapshot);
                    break;
                }

                case 34: {
                    PartnerId = input.ReadString();
                    break;
                }

                case 40: {
                    FortressCooldownLeftMs = input.ReadUInt64();
                    break;
                }
                }
            }
        }
Esempio n. 3
0
 public void MergeFrom(JoinChamberResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.state_ != null)
     {
         if (state_ == null)
         {
             State = new global::WUProtos.Data.ChamberState();
         }
         State.MergeFrom(other.State);
     }
     if (other.playerSnapshot_ != null)
     {
         if (playerSnapshot_ == null)
         {
             PlayerSnapshot = new global::WUProtos.Data.Client.ClientPlayerSnapshot();
         }
         PlayerSnapshot.MergeFrom(other.PlayerSnapshot);
     }
     if (other.PartnerId.Length != 0)
     {
         PartnerId = other.PartnerId;
     }
     if (other.FortressCooldownLeftMs != 0UL)
     {
         FortressCooldownLeftMs = other.FortressCooldownLeftMs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }