Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.Swish)
            {
                hash ^= Swish.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Combat)
            {
                hash ^= Combat.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Portkey)
            {
                hash ^= Portkey.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Picture)
            {
                hash ^= Picture.GetHashCode();
            }
            if (SpellGmtId.Length != 0)
            {
                hash ^= SpellGmtId.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public void MergeFrom(EncounterStartStageResult other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.Swish:
                if (Swish == null)
                {
                    Swish = new global::WUProtos.Data.Encounter.EncounterStartSwishStageResult();
                }
                Swish.MergeFrom(other.Swish);
                break;

            case TypeOneofCase.Combat:
                if (Combat == null)
                {
                    Combat = new global::WUProtos.Data.Encounter.EncounterStartCombatStageResult();
                }
                Combat.MergeFrom(other.Combat);
                break;

            case TypeOneofCase.Portkey:
                if (Portkey == null)
                {
                    Portkey = new global::WUProtos.Data.Encounter.EncounterStartPortkeyStageResult();
                }
                Portkey.MergeFrom(other.Portkey);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.Swish)
            {
                hash ^= Swish.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Combat)
            {
                hash ^= Combat.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Portkey)
            {
                hash ^= Portkey.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Picture)
            {
                hash ^= Picture.GetHashCode();
            }
            if (DisappearDelay != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DisappearDelay);
            }
            if (IntroText.Length != 0)
            {
                hash ^= IntroText.GetHashCode();
            }
            hash ^= stageSetupSequence_.GetHashCode();
            hash ^= stageCompletionSequence_.GetHashCode();
            if (SpellAimLayout.Length != 0)
            {
                hash ^= SpellAimLayout.GetHashCode();
            }
            hash ^= idleLoopTimelines_.GetHashCode();
            if (RngIntroTimeline.Length != 0)
            {
                hash ^= RngIntroTimeline.GetHashCode();
            }
            if (RngLoopTimeline.Length != 0)
            {
                hash ^= RngLoopTimeline.GetHashCode();
            }
            if (SpellFailedTimeline.Length != 0)
            {
                hash ^= SpellFailedTimeline.GetHashCode();
            }
            hash ^= combatSpellList_.GetHashCode();
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public void MergeFrom(EncounterStage other)
        {
            if (other == null)
            {
                return;
            }
            if (other.SpellGmtId.Length != 0)
            {
                SpellGmtId = other.SpellGmtId;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.Swish:
                if (Swish == null)
                {
                    Swish = new global::WUProtos.Data.Encounter.EncounterStageSwish();
                }
                Swish.MergeFrom(other.Swish);
                break;

            case TypeOneofCase.Combat:
                if (Combat == null)
                {
                    Combat = new global::WUProtos.Data.Encounter.EncounterStageCombat();
                }
                Combat.MergeFrom(other.Combat);
                break;

            case TypeOneofCase.Portkey:
                if (Portkey == null)
                {
                    Portkey = new global::WUProtos.Data.Encounter.EncounterStagePortkey();
                }
                Portkey.MergeFrom(other.Portkey);
                break;

            case TypeOneofCase.Picture:
                if (Picture == null)
                {
                    Picture = new global::WUProtos.Data.Encounter.EncounterStagePicture();
                }
                Picture.MergeFrom(other.Picture);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Esempio n. 5
0
        public void MergeFrom(AtlasInventoryItem other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.TypeCase)
            {
            case TypeOneofCase.Profile:
                if (Profile == null)
                {
                    Profile = new global::WUProtos.Data.Player.PlayerProfile();
                }
                Profile.MergeFrom(other.Profile);
                break;

            case TypeOneofCase.VaultItem:
                if (VaultItem == null)
                {
                    VaultItem = new global::WUProtos.Inventory.InventoryVaultItem();
                }
                VaultItem.MergeFrom(other.VaultItem);
                break;

            case TypeOneofCase.CollectionItem:
                if (CollectionItem == null)
                {
                    CollectionItem = new global::WUProtos.Inventory.InventoryCollectionItem();
                }
                CollectionItem.MergeFrom(other.CollectionItem);
                break;

            case TypeOneofCase.CollectionFamily:
                if (CollectionFamily == null)
                {
                    CollectionFamily = new global::WUProtos.Inventory.InventoryCollectionFamily();
                }
                CollectionFamily.MergeFrom(other.CollectionFamily);
                break;

            case TypeOneofCase.Walkbox:
                if (Walkbox == null)
                {
                    Walkbox = new global::WUProtos.Inventory.InventoryWalkboxItem();
                }
                Walkbox.MergeFrom(other.Walkbox);
                break;

            case TypeOneofCase.PlayerFlags:
                if (PlayerFlags == null)
                {
                    PlayerFlags = new global::WUProtos.Inventory.InventoryFeatureFlags();
                }
                PlayerFlags.MergeFrom(other.PlayerFlags);
                break;

            case TypeOneofCase.Portkey:
                if (Portkey == null)
                {
                    Portkey = new global::WUProtos.Inventory.InventoryPortkeyItem();
                }
                Portkey.MergeFrom(other.Portkey);
                break;

            case TypeOneofCase.PlayerActiveBuffList:
                if (PlayerActiveBuffList == null)
                {
                    PlayerActiveBuffList = new global::WUProtos.Data.Buff.ActiveBuffList();
                }
                PlayerActiveBuffList.MergeFrom(other.PlayerActiveBuffList);
                break;

            case TypeOneofCase.CollectionPage:
                if (CollectionPage == null)
                {
                    CollectionPage = new global::WUProtos.Inventory.InventoryCollectionPage();
                }
                CollectionPage.MergeFrom(other.CollectionPage);
                break;

            case TypeOneofCase.VaultCapacity:
                if (VaultCapacity == null)
                {
                    VaultCapacity = new global::WUProtos.Inventory.InventoryVaultCapacity();
                }
                VaultCapacity.MergeFrom(other.VaultCapacity);
                break;

            case TypeOneofCase.Cauldron:
                if (Cauldron == null)
                {
                    Cauldron = new global::WUProtos.Inventory.InventoryCauldron();
                }
                Cauldron.MergeFrom(other.Cauldron);
                break;

            case TypeOneofCase.EscrowedRewards:
                if (EscrowedRewards == null)
                {
                    EscrowedRewards = new global::WUProtos.Inventory.InventoryEscrowedRewards();
                }
                EscrowedRewards.MergeFrom(other.EscrowedRewards);
                break;

            case TypeOneofCase.ProfessionsProgressV3:
                if (ProfessionsProgressV3 == null)
                {
                    ProfessionsProgressV3 = new global::WUProtos.Data.Player.PlayerProfessionsProgressV3();
                }
                ProfessionsProgressV3.MergeFrom(other.ProfessionsProgressV3);
                break;

            case TypeOneofCase.QuestLog:
                if (QuestLog == null)
                {
                    QuestLog = new global::WUProtos.Inventory.InventoryQuestLog();
                }
                QuestLog.MergeFrom(other.QuestLog);
                break;

            case TypeOneofCase.Achievement:
                if (Achievement == null)
                {
                    Achievement = new global::WUProtos.Data.Player.PlayerAchievement();
                }
                Achievement.MergeFrom(other.Achievement);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.Profile)
            {
                hash ^= Profile.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.VaultItem)
            {
                hash ^= VaultItem.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.CollectionItem)
            {
                hash ^= CollectionItem.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.CollectionFamily)
            {
                hash ^= CollectionFamily.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Walkbox)
            {
                hash ^= Walkbox.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.PlayerFlags)
            {
                hash ^= PlayerFlags.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Portkey)
            {
                hash ^= Portkey.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.PlayerActiveBuffList)
            {
                hash ^= PlayerActiveBuffList.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.CollectionPage)
            {
                hash ^= CollectionPage.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.VaultCapacity)
            {
                hash ^= VaultCapacity.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Cauldron)
            {
                hash ^= Cauldron.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.EscrowedRewards)
            {
                hash ^= EscrowedRewards.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.ProfessionsProgressV3)
            {
                hash ^= ProfessionsProgressV3.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.QuestLog)
            {
                hash ^= QuestLog.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Achievement)
            {
                hash ^= Achievement.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public void MergeFrom(ClientEncounterStage other)
        {
            if (other == null)
            {
                return;
            }
            if (other.DisappearDelay != 0F)
            {
                DisappearDelay = other.DisappearDelay;
            }
            if (other.IntroText.Length != 0)
            {
                IntroText = other.IntroText;
            }
            stageSetupSequence_.Add(other.stageSetupSequence_);
            stageCompletionSequence_.Add(other.stageCompletionSequence_);
            if (other.SpellAimLayout.Length != 0)
            {
                SpellAimLayout = other.SpellAimLayout;
            }
            idleLoopTimelines_.Add(other.idleLoopTimelines_);
            if (other.RngIntroTimeline.Length != 0)
            {
                RngIntroTimeline = other.RngIntroTimeline;
            }
            if (other.RngLoopTimeline.Length != 0)
            {
                RngLoopTimeline = other.RngLoopTimeline;
            }
            if (other.SpellFailedTimeline.Length != 0)
            {
                SpellFailedTimeline = other.SpellFailedTimeline;
            }
            combatSpellList_.Add(other.combatSpellList_);
            switch (other.TypeCase)
            {
            case TypeOneofCase.Swish:
                if (Swish == null)
                {
                    Swish = new global::WUProtos.Data.Client.ClientEncounterStageSwish();
                }
                Swish.MergeFrom(other.Swish);
                break;

            case TypeOneofCase.Combat:
                if (Combat == null)
                {
                    Combat = new global::WUProtos.Data.Client.ClientEncounterStageCombat();
                }
                Combat.MergeFrom(other.Combat);
                break;

            case TypeOneofCase.Portkey:
                if (Portkey == null)
                {
                    Portkey = new global::WUProtos.Data.Client.ClientEncounterStagePortkey();
                }
                Portkey.MergeFrom(other.Portkey);
                break;

            case TypeOneofCase.Picture:
                if (Picture == null)
                {
                    Picture = new global::WUProtos.Data.Client.ClientEncounterStagePicture();
                }
                Picture.MergeFrom(other.Picture);
                break;
            }

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