Ejemplo n.º 1
0
 public void MergeFrom(EncounterStartResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.EncounterId.Length != 0)
     {
         EncounterId = other.EncounterId;
     }
     stages_.Add(other.stages_);
     if (other.firstStageCombatResults_ != null)
     {
         if (firstStageCombatResults_ == null)
         {
             FirstStageCombatResults = new global::WUProtos.Data.Combat.CombatResults();
         }
         FirstStageCombatResults.MergeFrom(other.FirstStageCombatResults);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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.Data.Encounter.EncounterInteractCombatStageResult.Types.Status)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (results_ == null)
                    {
                        Results = new global::WUProtos.Data.Combat.CombatResults();
                    }
                    input.ReadMessage(Results);
                    break;
                }
                }
            }
        }
        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: {
                    Result = (global::WUProtos.Networking.Responses.EncounterUsePotionResponse.Types.EncounterUsePotionResult)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (maybeUpdatedCombatResults_ == null)
                    {
                        MaybeUpdatedCombatResults = new global::WUProtos.Data.Combat.CombatResults();
                    }
                    input.ReadMessage(MaybeUpdatedCombatResults);
                    break;
                }
                }
            }
        }
 public void MergeFrom(EncounterGetStateCombatStageResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.results_ != null)
     {
         if (results_ == null)
         {
             Results = new global::WUProtos.Data.Combat.CombatResults();
         }
         Results.MergeFrom(other.Results);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(EncounterUsePotionResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.maybeUpdatedCombatResults_ != null)
     {
         if (maybeUpdatedCombatResults_ == null)
         {
             MaybeUpdatedCombatResults = new global::WUProtos.Data.Combat.CombatResults();
         }
         MaybeUpdatedCombatResults.MergeFrom(other.MaybeUpdatedCombatResults);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 6
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.Networking.Responses.EncounterStartResponse.Types.Status)input.ReadEnum();
                    break;
                }

                case 18: {
                    EncounterId = input.ReadBytes();
                    break;
                }

                case 26: {
                    stages_.AddEntriesFrom(input, _repeated_stages_codec);
                    break;
                }

                case 34: {
                    if (firstStageCombatResults_ == null)
                    {
                        FirstStageCombatResults = new global::WUProtos.Data.Combat.CombatResults();
                    }
                    input.ReadMessage(FirstStageCombatResults);
                    break;
                }
                }
            }
        }
        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 (results_ == null)
                    {
                        Results = new global::WUProtos.Data.Combat.CombatResults();
                    }
                    input.ReadMessage(Results);
                    break;
                }
                }
            }
        }