public override int GetHashCode()
        {
            int hash = 1;

            if (LoginBonusId.Length != 0)
            {
                hash ^= LoginBonusId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (ItemSetId != 0UL)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EventBannerId.Length != 0)
            {
                hash ^= EventBannerId.GetHashCode();
            }
            if (U2 != 0)
            {
                hash ^= U2.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U5.Length != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
            private int CalculateHashCode()
            {
                // As obtained from the Jon Skeet answer to:
                // http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
                // And adapted towards the Modified Bernstein (shown here: http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx)
                //
                // Overflow is fine, just wrap
                unchecked
                {
                    // Pick a random prime number
                    int hash = 17;

                    // Mash the hash together with yet another random prime number
                    hash = (hash * 23) ^ m_Id.GetHashCode();
                    if (m_Variables != null)
                    {
                        foreach (var variable in m_Variables)
                        {
                            hash = (hash * 23) ^ variable.GetHashCode();
                        }
                    }

                    return(hash);
                }
            }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MonsterEnhancementId != 0UL)
            {
                hash ^= MonsterEnhancementId.GetHashCode();
            }
            if (TrainerId != 0UL)
            {
                hash ^= TrainerId.GetHashCode();
            }
            if (MonsterIdCurrent != 0UL)
            {
                hash ^= MonsterIdCurrent.GetHashCode();
            }
            if (MonsterIdNext != 0UL)
            {
                hash ^= MonsterIdNext.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EggDropId != 0)
            {
                hash ^= EggDropId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (U5 != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestGroupId != 0L)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U3.Length != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (ItemSetId != 0L)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemExchangeGroupId != 0)
            {
                hash ^= ItemExchangeGroupId.GetHashCode();
            }
            if (U2 != 0)
            {
                hash ^= U2.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U5 != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (TrainerBuildupConfigId != 0)
            {
                hash ^= TrainerBuildupConfigId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U4.Length != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (TrainerId != 0L)
            {
                hash ^= TrainerId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BingoMissionGroupId != 0)
            {
                hash ^= BingoMissionGroupId.GetHashCode();
            }
            if (U2 != 0)
            {
                hash ^= U2.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (BingoMissionCardId != 0)
            {
                hash ^= BingoMissionCardId.GetHashCode();
            }
            if (BingoMissionRewardId != 0)
            {
                hash ^= BingoMissionRewardId.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (PrevBingoMissionGroupId != 0)
            {
                hash ^= PrevBingoMissionGroupId.GetHashCode();
            }
            if (BingoMissionGroupPermissionId != 0)
            {
                hash ^= BingoMissionGroupPermissionId.GetHashCode();
            }
            if (U11 != 0)
            {
                hash ^= U11.GetHashCode();
            }
            if (U12 != 0)
            {
                hash ^= U12.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MissionId != 0)
            {
                hash ^= MissionId.GetHashCode();
            }
            if (MissionGroupId != 0)
            {
                hash ^= MissionGroupId.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            hash ^= parameters_.GetHashCode();
            hash ^= objectives_.GetHashCode();
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U7 != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (U9 != 0)
            {
                hash ^= U9.GetHashCode();
            }
            hash ^= itemSetIds_.GetHashCode();
            if (Number != 0)
            {
                hash ^= Number.GetHashCode();
            }
            if (RequirementId != 0)
            {
                hash ^= RequirementId.GetHashCode();
            }
            if (U13.Length != 0)
            {
                hash ^= U13.GetHashCode();
            }
            if (U14.Length != 0)
            {
                hash ^= U14.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (SpiderId.Length != 0)
            {
                hash ^= SpiderId.GetHashCode();
            }
            if (Status.Length != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (NodeId.Length != 0)
            {
                hash ^= NodeId.GetHashCode();
            }
            if (Cmd.Length != 0)
            {
                hash ^= Cmd.GetHashCode();
            }
            if (Param.Length != 0)
            {
                hash ^= Param.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (RunType.Length != 0)
            {
                hash ^= RunType.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemExchangeId != 0)
            {
                hash ^= ItemExchangeId.GetHashCode();
            }
            if (ItemExchangeGroupId != 0)
            {
                hash ^= ItemExchangeGroupId.GetHashCode();
            }
            if (ItemSetId != 0L)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (Quantity != 0)
            {
                hash ^= Quantity.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (Limit != 0)
            {
                hash ^= Limit.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (U9 != 0)
            {
                hash ^= U9.GetHashCode();
            }
            if (U10 != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (U11 != 0L)
            {
                hash ^= U11.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestGroupId != 0L)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (U2.Length != 0)
            {
                hash ^= U2.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (U7.Length != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (BgmId.Length != 0)
            {
                hash ^= BgmId.GetHashCode();
            }
            if (U10 != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MissionGroupId != 0)
            {
                hash ^= MissionGroupId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (U5 != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (ItemSetId != 0L)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U9 != 0)
            {
                hash ^= U9.GetHashCode();
            }
            if (U10 != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ScoutId.Length != 0)
            {
                hash ^= ScoutId.GetHashCode();
            }
            if (BannerIdString.Length != 0)
            {
                hash ^= BannerIdString.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U5 != 0UL)
            {
                hash ^= U5.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (U7 != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U9.Length != 0)
            {
                hash ^= U9.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (SubCategory != 0L)
            {
                hash ^= SubCategory.GetHashCode();
            }
            if (U3 != 0)
            {
                hash ^= U3.GetHashCode();
            }
            if (Rarity != 0)
            {
                hash ^= Rarity.GetHashCode();
            }
            if (U5 != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (ImageId.Length != 0)
            {
                hash ^= ImageId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (U9 != 0L)
            {
                hash ^= U9.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BoxSearchId != 0)
            {
                hash ^= BoxSearchId.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (ItemId != 0L)
            {
                hash ^= ItemId.GetHashCode();
            }
            if (BannerId != 0)
            {
                hash ^= BannerId.GetHashCode();
            }
            if (U5.Length != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (TextId.Length != 0)
            {
                hash ^= TextId.GetHashCode();
            }
            if (U7 != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (StartDate != 0UL)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (EndDate != 0UL)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StoryQuestId != 0UL)
            {
                hash ^= StoryQuestId.GetHashCode();
            }
            if (QuestNameId.Length != 0)
            {
                hash ^= QuestNameId.GetHashCode();
            }
            if (FieldId != 0UL)
            {
                hash ^= FieldId.GetHashCode();
            }
            if (RequiredConditionId != 0L)
            {
                hash ^= RequiredConditionId.GetHashCode();
            }
            if (SortBy != 0UL)
            {
                hash ^= SortBy.GetHashCode();
            }
            if (AreaSpotId != 0UL)
            {
                hash ^= AreaSpotId.GetHashCode();
            }
            if (ItemSetId != 0UL)
            {
                hash ^= ItemSetId.GetHashCode();
            }
            if (QuestGroupId != 0UL)
            {
                hash ^= QuestGroupId.GetHashCode();
            }
            if (FieldType != 0)
            {
                hash ^= FieldType.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (PlayCountLimit != 0L)
            {
                hash ^= PlayCountLimit.GetHashCode();
            }
            if (ChapterOpenAnimation != false)
            {
                hash ^= ChapterOpenAnimation.GetHashCode();
            }
            if (Difficulty != 0)
            {
                hash ^= Difficulty.GetHashCode();
            }
            if (WeekScheduleKeyword.Length != 0)
            {
                hash ^= WeekScheduleKeyword.GetHashCode();
            }
            if (Debug != false)
            {
                hash ^= Debug.GetHashCode();
            }
            if (DebugCategory != 0L)
            {
                hash ^= DebugCategory.GetHashCode();
            }
            if (RewardType != 0)
            {
                hash ^= RewardType.GetHashCode();
            }
            if (ShowcasedItemId != 0L)
            {
                hash ^= ShowcasedItemId.GetHashCode();
            }
            if (CharaQuestListItemId != 0L)
            {
                hash ^= CharaQuestListItemId.GetHashCode();
            }
            if (IsEvolutionQuest != false)
            {
                hash ^= IsEvolutionQuest.GetHashCode();
            }
            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (IsSearchQuest != false)
            {
                hash ^= IsSearchQuest.GetHashCode();
            }
            if (NextQuestId != 0UL)
            {
                hash ^= NextQuestId.GetHashCode();
            }
            if (U24 != 0UL)
            {
                hash ^= U24.GetHashCode();
            }
            if (U25 != 0UL)
            {
                hash ^= U25.GetHashCode();
            }
            if (U26 != 0UL)
            {
                hash ^= U26.GetHashCode();
            }
            if (U27 != 0UL)
            {
                hash ^= U27.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #20
0
        public void HasSameHashcode()
        {
            var id = new ScheduleId("A12345", new DateTime(2019, 1, 2), StpIndicator.P, RecordAction.Create);

            Assert.Equal(_test.GetHashCode(), id.GetHashCode());
        }
Beispiel #21
0
 public void HasDifferentHashcode(ScheduleId id)
 {
     Assert.NotEqual(_test.GetHashCode(), id.GetHashCode());
 }
Beispiel #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TrainerId != 0L)
            {
                hash ^= TrainerId.GetHashCode();
            }
            if (TrainerKind != 0)
            {
                hash ^= TrainerKind.GetHashCode();
            }
            if (ScoutMethod != 0)
            {
                hash ^= ScoutMethod.GetHashCode();
            }
            if (Exclusivity != 0L)
            {
                hash ^= Exclusivity.GetHashCode();
            }
            if (TrainerBaseId != 0)
            {
                hash ^= TrainerBaseId.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Rarity != 0)
            {
                hash ^= Rarity.GetHashCode();
            }
            if (Role != 0)
            {
                hash ^= Role.GetHashCode();
            }
            if (MonsterId != 0UL)
            {
                hash ^= MonsterId.GetHashCode();
            }
            if (Move1Id != 0)
            {
                hash ^= Move1Id.GetHashCode();
            }
            if (Move2Id != 0)
            {
                hash ^= Move2Id.GetHashCode();
            }
            if (Move3Id != 0)
            {
                hash ^= Move3Id.GetHashCode();
            }
            if (Move4Id != 0)
            {
                hash ^= Move4Id.GetHashCode();
            }
            if (Weakness != 0)
            {
                hash ^= Weakness.GetHashCode();
            }
            if (StoryQuest != 0UL)
            {
                hash ^= StoryQuest.GetHashCode();
            }
            if (U16 != 0)
            {
                hash ^= U16.GetHashCode();
            }
            if (Passive1Id != 0)
            {
                hash ^= Passive1Id.GetHashCode();
            }
            if (Passive2Id != 0)
            {
                hash ^= Passive2Id.GetHashCode();
            }
            if (Passive3Id != 0)
            {
                hash ^= Passive3Id.GetHashCode();
            }
            if (Passive4Id != 0)
            {
                hash ^= Passive4Id.GetHashCode();
            }
            if (TeamSkill1Id != 0)
            {
                hash ^= TeamSkill1Id.GetHashCode();
            }
            if (TeamSkill2Id != 0)
            {
                hash ^= TeamSkill2Id.GetHashCode();
            }
            if (TeamSkill3Id != 0)
            {
                hash ^= TeamSkill3Id.GetHashCode();
            }
            if (TeamSkill4Id != 0)
            {
                hash ^= TeamSkill4Id.GetHashCode();
            }
            if (TeamSkill5Id != 0)
            {
                hash ^= TeamSkill5Id.GetHashCode();
            }
            if (U26 != 0)
            {
                hash ^= U26.GetHashCode();
            }
            if (U27 != 0)
            {
                hash ^= U27.GetHashCode();
            }
            if (Number != 0)
            {
                hash ^= Number.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (ExScheduleId.Length != 0)
            {
                hash ^= ExScheduleId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }