示例#1
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 10: {
                    global::WUProtos.Data.DoEncounterHookQuestTask subBuilder = new global::WUProtos.Data.DoEncounterHookQuestTask();
                    if (typeCase_ == TypeOneofCase.DoEncounter)
                    {
                        subBuilder.MergeFrom(DoEncounter);
                    }
                    input.ReadMessage(subBuilder);
                    DoEncounter = subBuilder;
                    break;
                }

                case 18: {
                    global::WUProtos.Data.Loot.LootOutpostsQuestTask subBuilder = new global::WUProtos.Data.Loot.LootOutpostsQuestTask();
                    if (typeCase_ == TypeOneofCase.LootOutposts)
                    {
                        subBuilder.MergeFrom(LootOutposts);
                    }
                    input.ReadMessage(subBuilder);
                    LootOutposts = subBuilder;
                    break;
                }

                case 26: {
                    global::WUProtos.Data.WinTracesQuestTask subBuilder = new global::WUProtos.Data.WinTracesQuestTask();
                    if (typeCase_ == TypeOneofCase.WinTraces)
                    {
                        subBuilder.MergeFrom(WinTraces);
                    }
                    input.ReadMessage(subBuilder);
                    WinTraces = subBuilder;
                    break;
                }

                case 34: {
                    global::WUProtos.Data.CollectPotionIngredientsQuestTask subBuilder = new global::WUProtos.Data.CollectPotionIngredientsQuestTask();
                    if (typeCase_ == TypeOneofCase.CollectPotionIngredients)
                    {
                        subBuilder.MergeFrom(CollectPotionIngredients);
                    }
                    input.ReadMessage(subBuilder);
                    CollectPotionIngredients = subBuilder;
                    break;
                }

                case 42: {
                    global::WUProtos.Data.BrewPotionsQuestTask subBuilder = new global::WUProtos.Data.BrewPotionsQuestTask();
                    if (typeCase_ == TypeOneofCase.BrewPotions)
                    {
                        subBuilder.MergeFrom(BrewPotions);
                    }
                    input.ReadMessage(subBuilder);
                    BrewPotions = subBuilder;
                    break;
                }

                case 50: {
                    global::WUProtos.Data.WalkDistanceQuestTask subBuilder = new global::WUProtos.Data.WalkDistanceQuestTask();
                    if (typeCase_ == TypeOneofCase.WalkDistance)
                    {
                        subBuilder.MergeFrom(WalkDistance);
                    }
                    input.ReadMessage(subBuilder);
                    WalkDistance = subBuilder;
                    break;
                }

                case 58: {
                    global::WUProtos.Data.PlayFortressChallengesQuestTask subBuilder = new global::WUProtos.Data.PlayFortressChallengesQuestTask();
                    if (typeCase_ == TypeOneofCase.PlayFortressChallenges)
                    {
                        subBuilder.MergeFrom(PlayFortressChallenges);
                    }
                    input.ReadMessage(subBuilder);
                    PlayFortressChallenges = subBuilder;
                    break;
                }
                }
            }
        }
示例#2
0
        public void MergeFrom(HookQuestTask other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.DoEncounter:
                if (DoEncounter == null)
                {
                    DoEncounter = new global::WUProtos.Data.DoEncounterHookQuestTask();
                }
                DoEncounter.MergeFrom(other.DoEncounter);
                break;

            case TypeOneofCase.LootOutposts:
                if (LootOutposts == null)
                {
                    LootOutposts = new global::WUProtos.Data.Loot.LootOutpostsQuestTask();
                }
                LootOutposts.MergeFrom(other.LootOutposts);
                break;

            case TypeOneofCase.WinTraces:
                if (WinTraces == null)
                {
                    WinTraces = new global::WUProtos.Data.WinTracesQuestTask();
                }
                WinTraces.MergeFrom(other.WinTraces);
                break;

            case TypeOneofCase.CollectPotionIngredients:
                if (CollectPotionIngredients == null)
                {
                    CollectPotionIngredients = new global::WUProtos.Data.CollectPotionIngredientsQuestTask();
                }
                CollectPotionIngredients.MergeFrom(other.CollectPotionIngredients);
                break;

            case TypeOneofCase.BrewPotions:
                if (BrewPotions == null)
                {
                    BrewPotions = new global::WUProtos.Data.BrewPotionsQuestTask();
                }
                BrewPotions.MergeFrom(other.BrewPotions);
                break;

            case TypeOneofCase.WalkDistance:
                if (WalkDistance == null)
                {
                    WalkDistance = new global::WUProtos.Data.WalkDistanceQuestTask();
                }
                WalkDistance.MergeFrom(other.WalkDistance);
                break;

            case TypeOneofCase.PlayFortressChallenges:
                if (PlayFortressChallenges == null)
                {
                    PlayFortressChallenges = new global::WUProtos.Data.PlayFortressChallengesQuestTask();
                }
                PlayFortressChallenges.MergeFrom(other.PlayFortressChallenges);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }