Пример #1
0
 public void Update(DestinyProgressionStepDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (StepName != other.StepName)
     {
         StepName = other.StepName;
         OnPropertyChanged(nameof(StepName));
     }
     if (DisplayEffectType != other.DisplayEffectType)
     {
         DisplayEffectType = other.DisplayEffectType;
         OnPropertyChanged(nameof(DisplayEffectType));
     }
     if (ProgressTotal != other.ProgressTotal)
     {
         ProgressTotal = other.ProgressTotal;
         OnPropertyChanged(nameof(ProgressTotal));
     }
     if (!RewardItems.DeepEqualsList(other.RewardItems))
     {
         RewardItems = other.RewardItems;
         OnPropertyChanged(nameof(RewardItems));
     }
     if (Icon != other.Icon)
     {
         Icon = other.Icon;
         OnPropertyChanged(nameof(Icon));
     }
 }
Пример #2
0
        public void LoadRewardItems(int pCharID)
        {
            try
            {
                locker.WaitOne();
                DataTable Rewarddata = null;
                using (var dbClient = Program.CharDBManager.GetClient())
                {
                    Rewarddata = dbClient.ReadDataTable("SELECT *FROM RewardItems WHERE CharID='" + pCharID + "'");
                }

                if (Rewarddata != null)
                {
                    foreach (DataRow row in Rewarddata.Rows)
                    {
                        var pItem = RewardItem.LoadFromDatabase(row);
                        if (!RewardItems.ContainsKey(pItem.PageID))
                        {
                            RewardItems[pItem.PageID] = new List <RewardItem>();
                        }

                        RewardItems[pItem.PageID].Add(pItem);
                    }
                }
            }
            finally
            {
                locker.ReleaseMutex();
            }
        }
Пример #3
0
        public void ParseRow(string[] rowData)
        {
            int index = 0;

            index++;
            Id = int.Parse(rowData[index++]);
            index++;
            Name             = rowData[index++];
            HintWhenClose    = rowData[index++];
            Description1     = rowData[index++];
            Description2     = rowData[index++];
            Icon             = int.Parse(rowData[index++]);
            UnlockLevel      = int.Parse(rowData[index++]);
            RepeatType       = int.Parse(rowData[index++]);
            StartTime        = rowData[index++].Trim('"');
            EndTime          = rowData[index++].Trim('"');
            DisplayWhenClose = bool.Parse(rowData[index++]);
            RewardExp        = int.Parse(rowData[index++]);
            RewardCoin       = int.Parse(rowData[index++]);
            while (index < rowData.Length)
            {
                RewardItems.Add(int.Parse(rowData[index++]));
            }

            DTActivityCache.TryAdd(Id.ToString(), this);
        }
        public bool Equals(DestinyProgressionStepDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     StepName == input.StepName ||
                     (StepName != null && StepName.Equals(input.StepName))
                     ) &&
                 (
                     DisplayEffectType == input.DisplayEffectType ||
                     (DisplayEffectType != null && DisplayEffectType.Equals(input.DisplayEffectType))
                 ) &&
                 (
                     ProgressTotal == input.ProgressTotal ||
                     (ProgressTotal.Equals(input.ProgressTotal))
                 ) &&
                 (
                     RewardItems == input.RewardItems ||
                     (RewardItems != null && RewardItems.SequenceEqual(input.RewardItems))
                 ) &&
                 (
                     Icon == input.Icon ||
                     (Icon != null && Icon.Equals(input.Icon))
                 ));
        }
Пример #5
0
    private void GetReward()
    {
        if (rewardItems != RewardItems.None)
        {
            switch (rewardItems)
            {
            case RewardItems.Coin:
                SaveSystem.AddUserCoin(rewardAmount);
                break;

            case RewardItems.Crystal:
                SaveSystem.AddUserCrystal(rewardAmount);
                break;

            case RewardItems.Energy:
                SaveSystem.AddUserEnergy(rewardAmount);
                break;

            case RewardItems.SpeicalGachaOne:
                UI_Manager.instance.PopupGetGacha(GachaSystem.GachaType.SpecialOne);
                break;
            }
            rewardItems = RewardItems.None;
        }
    }
Пример #6
0
        public override void Write()
        {
            _worldPacket.WriteUInt32(Version);
            _worldPacket.WriteUInt32(RewardItems.Count);

            RewardItems.ForEach(p => p.Write(_worldPacket));
        }
Пример #7
0
 public RewardItems Put(RewardItems News)
 {
     try
     {
         RewardItems comp = context.RewardItemsDb.Where(x => x.rItemId == News.rItemId).FirstOrDefault();
         if (comp != null)
         {
             comp.rName       = News.rName;
             comp.rPoint      = News.rPoint;
             comp.rItem       = News.rItem;
             comp.Description = News.Description;
             comp.ImageUrl    = News.ImageUrl;
             comp.IsDeleted   = News.IsDeleted;
             comp.IsActive    = News.IsActive;
             context.RewardItemsDb.Attach(comp);
             context.Entry(comp).State = EntityState.Modified;
             context.SaveChanges();
         }
         return(comp);
     }
     catch (Exception ex)
     {
         logger.Error("Error in Put News " + ex.Message);
         return(null);
     }
 }
Пример #8
0
 public bool DeepEquals(DestinyRecordDefinition other)
 {
     return(other != null &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            CompletionInfo.DeepEquals(other.CompletionInfo) &&
            ExpirationInfo.DeepEquals(other.ExpirationInfo) &&
            IntervalInfo.DeepEquals(other.IntervalInfo) &&
            StateInfo.DeepEquals(other.StateInfo) &&
            TitleInfo.DeepEquals(other.TitleInfo) &&
            Objectives.DeepEqualsReadOnlyCollections(other.Objectives) &&
            ParentNodes.DeepEqualsReadOnlyCollections(other.ParentNodes) &&
            PresentationNodeType == other.PresentationNodeType &&
            RecordValueStyle == other.RecordValueStyle &&
            Requirements.DeepEquals(other.Requirements) &&
            RewardItems.DeepEqualsReadOnlyCollections(other.RewardItems) &&
            Scope == other.Scope &&
            Traits.DeepEqualsReadOnlyCollections(other.Traits) &&
            TraitIds.DeepEqualsReadOnlySimpleCollection(other.TraitIds) &&
            Lore.DeepEquals(other.Lore) &&
            PresentationInfo.DeepEquals(other.PresentationInfo) &&
            ForTitleGilding == other.ForTitleGilding &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
 public bool DeepEquals(DestinyRecordDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            Scope == other.Scope &&
            (PresentationInfo is not null ? PresentationInfo.DeepEquals(other.PresentationInfo) : other.PresentationInfo is null) &&
            LoreHash == other.LoreHash &&
            ObjectiveHashes.DeepEqualsListNaive(other.ObjectiveHashes) &&
            RecordValueStyle == other.RecordValueStyle &&
            ForTitleGilding == other.ForTitleGilding &&
            (TitleInfo is not null ? TitleInfo.DeepEquals(other.TitleInfo) : other.TitleInfo is null) &&
            (CompletionInfo is not null ? CompletionInfo.DeepEquals(other.CompletionInfo) : other.CompletionInfo is null) &&
            (StateInfo is not null ? StateInfo.DeepEquals(other.StateInfo) : other.StateInfo is null) &&
            (Requirements is not null ? Requirements.DeepEquals(other.Requirements) : other.Requirements is null) &&
            (ExpirationInfo is not null ? ExpirationInfo.DeepEquals(other.ExpirationInfo) : other.ExpirationInfo is null) &&
            (IntervalInfo is not null ? IntervalInfo.DeepEquals(other.IntervalInfo) : other.IntervalInfo is null) &&
            RewardItems.DeepEqualsList(other.RewardItems) &&
            PresentationNodeType == other.PresentationNodeType &&
            TraitIds.DeepEqualsListNaive(other.TraitIds) &&
            TraitHashes.DeepEqualsListNaive(other.TraitHashes) &&
            ParentNodeHashes.DeepEqualsListNaive(other.ParentNodeHashes) &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
Пример #10
0
        public override void Initialize()
        {
            base.Initialize();

            RewardItems.Add(new RegularShield(Game, ItemVariety.High));

            SetDestinations();
            SetupObjectives();
        }
Пример #11
0
 public bool DeepEquals(DestinyProgressionStepDefinition?other)
 {
     return(other is not null &&
            StepName == other.StepName &&
            DisplayEffectType == other.DisplayEffectType &&
            ProgressTotal == other.ProgressTotal &&
            RewardItems.DeepEqualsList(other.RewardItems) &&
            Icon == other.Icon);
 }
Пример #12
0
 public void ShowDefaultRewardedAd(int reward)
 {
     if (Advertisement.IsReady("rewardedVideo"))
     {
         rewardItems  = (RewardItems)reward;
         rewardAmount = defaultRewardAmount[reward];
         var options = new ShowOptions {
             resultCallback = HandleShowResult
         };
         Advertisement.Show("rewardedVideo", options);
     }
 }
Пример #13
0
 public void ShowRewardedAd(RewardItems reward, int amount = 0)
 {
     if (Advertisement.IsReady("rewardedVideo"))
     {
         rewardItems  = reward;
         rewardAmount = amount;
         var options = new ShowOptions {
             resultCallback = HandleShowResult
         };
         Advertisement.Show("rewardedVideo", options);
     }
 }
Пример #14
0
        public override void Initialize()
        {
            base.Initialize();

            RestartAfterFail();
            Station soelaraStation = Game.stateManager.overworldState.GetStation("Soelara Station");

            RewardItems.Add(new LongShotWeapon(Game, ItemVariety.Regular));
            freighterHP = 1500;

            Setup();
        }
        public override void Initialize()
        {
            base.Initialize();

            AdvancedEnergyCell cell = new AdvancedEnergyCell(Game, ItemVariety.High);

            RewardItems.Add(cell);

            RestartAfterFail();

            SetDestinations();
            SetupObjectives();
        }
        public override void Initialize()
        {
            base.Initialize();

            RewardItems.Add(new SpreadBulletWeapon(Game, ItemVariety.Regular));

            borderStationPos = Game.stateManager.overworldState.GetStation("Border Station").position;

            CreateAllyShip();

            SetDestinations();
            SetupObjectives();
        }
Пример #17
0
        public override void Initialize()
        {
            base.Initialize();

            DualLaserWeapon weapon = new DualLaserWeapon(Game, ItemVariety.High);

            RewardItems.Add(weapon);

            RestartAfterFail();

            SetDestinations();
            SetupObjectives();
        }
        public override void Initialize()
        {
            base.Initialize();

            AdvancedBeamWeapon advancedBeam = new AdvancedBeamWeapon(Game, ItemVariety.Regular);

            RewardItems.Add(advancedBeam);

            RestartAfterFail();

            SetDestinations();
            SetupObjectives();
        }
Пример #19
0
        public override void Initialize()
        {
            base.Initialize();

            medicalSupplies = new MedicalSupplies(this.Game);

            regularCell = new RegularEnergyCell(Game, ItemVariety.Regular);
            RewardItems.Add(regularCell);

            requiresAvailableSlot = true;

            SetDestinations();
            SetupObjectives();
        }
 public bool DeepEquals(DestinyProgressionDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            Scope == other.Scope &&
            RepeatLastStep == other.RepeatLastStep &&
            Source == other.Source &&
            Steps.DeepEqualsList(other.Steps) &&
            Visible == other.Visible &&
            FactionHash == other.FactionHash &&
            (Color is not null ? Color.DeepEquals(other.Color) : other.Color is null) &&
            RankIcon == other.RankIcon &&
            RewardItems.DeepEqualsList(other.RewardItems) &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
Пример #21
0
 public RewardItems add(RewardItems news)
 {
     logger.Info("Add News: ");
     try
     {
         news.CreateDate = indianTime;
         news.IsActive   = true;
         news.IsDeleted  = false;
         context.RewardItemsDb.Add(news);
         context.SaveChanges();
         return(news);
     }
     catch (Exception ex)
     {
         logger.Error("Error in Add News " + ex.Message);
         return(null);
     }
 }
Пример #22
0
        public void AddRewardItem(RewardItem pItem)
        {
            try
            {
                locker.WaitOne();
                if (!RewardItems.ContainsKey(pItem.PageID))
                {
                    RewardItems[pItem.PageID] = new List <RewardItem>();
                }

                pItem.AddToDatabase();
                RewardItems[pItem.PageID].Add(pItem);
            }
            finally
            {
                locker.ReleaseMutex();
            }
        }
 public bool DeepEquals(DestinyProgressionDefinition other)
 {
     return(other != null &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            (Color != null ? Color.DeepEquals(other.Color) : other.Color == null) &&
            ProgressToNextStepScaling == other.ProgressToNextStepScaling &&
            RankIcon == other.RankIcon &&
            RepeatLastStep == other.RepeatLastStep &&
            RewardItems.DeepEqualsReadOnlyCollections(other.RewardItems) &&
            Scope == other.Scope &&
            StorageMappingIndex == other.StorageMappingIndex &&
            Visible == other.Visible &&
            Steps.DeepEqualsReadOnlyCollections(other.Steps) &&
            Source == other.Source &&
            Faction.DeepEquals(other.Faction) &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
Пример #24
0
        public RewardItems Get(int id)
        {
            logger.Info("start single News: ");
            RewardItems News = new RewardItems();

            try
            {
                logger.Info("in News");

                News = context.RewardItemsDb.Where(x => x.rItemId == id && x.IsDeleted == false).SingleOrDefault();
                logger.Info("End Get News by item id: ");
                return(News);
            }
            catch (Exception ex)
            {
                logger.Error("Error in Get News by item id " + ex.Message);
                logger.Info("End  single News: ");
                return(null);
            }
        }
Пример #25
0
 public string Remove(int id)
 {
     logger.Info("DELETE Remove: ");
     try
     {
         RewardItems comp = context.RewardItemsDb.Where(x => x.rItemId == id).SingleOrDefault();
         if (comp != null)
         {
             context.RewardItemsDb.Remove(comp);
             context.SaveChanges();
             return("success");
         }
         else
         {
             return("Record doen't exist");
         }
     }
     catch (Exception ex)
     {
         logger.Error("Error in Remove News " + ex.Message);
         return("error");
     }
 }
 public void Update(DestinyRecordDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (Scope != other.Scope)
     {
         Scope = other.Scope;
         OnPropertyChanged(nameof(Scope));
     }
     if (!PresentationInfo.DeepEquals(other.PresentationInfo))
     {
         PresentationInfo.Update(other.PresentationInfo);
         OnPropertyChanged(nameof(PresentationInfo));
     }
     if (LoreHash != other.LoreHash)
     {
         LoreHash = other.LoreHash;
         OnPropertyChanged(nameof(LoreHash));
     }
     if (!ObjectiveHashes.DeepEqualsListNaive(other.ObjectiveHashes))
     {
         ObjectiveHashes = other.ObjectiveHashes;
         OnPropertyChanged(nameof(ObjectiveHashes));
     }
     if (RecordValueStyle != other.RecordValueStyle)
     {
         RecordValueStyle = other.RecordValueStyle;
         OnPropertyChanged(nameof(RecordValueStyle));
     }
     if (ForTitleGilding != other.ForTitleGilding)
     {
         ForTitleGilding = other.ForTitleGilding;
         OnPropertyChanged(nameof(ForTitleGilding));
     }
     if (!TitleInfo.DeepEquals(other.TitleInfo))
     {
         TitleInfo.Update(other.TitleInfo);
         OnPropertyChanged(nameof(TitleInfo));
     }
     if (!CompletionInfo.DeepEquals(other.CompletionInfo))
     {
         CompletionInfo.Update(other.CompletionInfo);
         OnPropertyChanged(nameof(CompletionInfo));
     }
     if (!StateInfo.DeepEquals(other.StateInfo))
     {
         StateInfo.Update(other.StateInfo);
         OnPropertyChanged(nameof(StateInfo));
     }
     if (!Requirements.DeepEquals(other.Requirements))
     {
         Requirements.Update(other.Requirements);
         OnPropertyChanged(nameof(Requirements));
     }
     if (!ExpirationInfo.DeepEquals(other.ExpirationInfo))
     {
         ExpirationInfo.Update(other.ExpirationInfo);
         OnPropertyChanged(nameof(ExpirationInfo));
     }
     if (!IntervalInfo.DeepEquals(other.IntervalInfo))
     {
         IntervalInfo.Update(other.IntervalInfo);
         OnPropertyChanged(nameof(IntervalInfo));
     }
     if (!RewardItems.DeepEqualsList(other.RewardItems))
     {
         RewardItems = other.RewardItems;
         OnPropertyChanged(nameof(RewardItems));
     }
     if (PresentationNodeType != other.PresentationNodeType)
     {
         PresentationNodeType = other.PresentationNodeType;
         OnPropertyChanged(nameof(PresentationNodeType));
     }
     if (!TraitIds.DeepEqualsListNaive(other.TraitIds))
     {
         TraitIds = other.TraitIds;
         OnPropertyChanged(nameof(TraitIds));
     }
     if (!TraitHashes.DeepEqualsListNaive(other.TraitHashes))
     {
         TraitHashes = other.TraitHashes;
         OnPropertyChanged(nameof(TraitHashes));
     }
     if (!ParentNodeHashes.DeepEqualsListNaive(other.ParentNodeHashes))
     {
         ParentNodeHashes = other.ParentNodeHashes;
         OnPropertyChanged(nameof(ParentNodeHashes));
     }
     if (Hash != other.Hash)
     {
         Hash = other.Hash;
         OnPropertyChanged(nameof(Hash));
     }
     if (Index != other.Index)
     {
         Index = other.Index;
         OnPropertyChanged(nameof(Index));
     }
     if (Redacted != other.Redacted)
     {
         Redacted = other.Redacted;
         OnPropertyChanged(nameof(Redacted));
     }
 }
Пример #27
0
        /// <summary>
        /// 値を設定する。
        /// </summary>
        /// <param name="paramName">パラメータ名</param>
        /// <param name="value">値</param>
        public void SetValue(string paramName, object value)
        {
            switch (paramName)
            {
            case "id":
                Id = (int)((double)(value));
                break;

            case "guildRank":
                GuildRank = (int)((double)(value));
                break;

            case "guildExp":
                GuildExp = (int)((double)(value));
                break;

            case "entrustCondition":
                EntrustCondition = (string)(value);
                break;

            case "qtype":
                QuestType = (int)((double)(value));
                break;

            case "achieve":
            {
                List <int> array = (List <int>)(value);
                for (int i = 0; i < 2; i++)
                {
                    if (i < array.Count)
                    {
                        Achieve[i] = array[i];
                    }
                    else
                    {
                        Achieve[i] = 0;
                    }
                }
            }
            break;

            case "rewardGold":
                RewardGold = (int)((double)(value));
                break;

            case "rewardItems":
                RewardItems.Clear();
                RewardItems.AddRange((List <RewardItem>)(value));
                break;

            case "name":
                Name = (string)(value);
                break;

            case "achieveMsg":
                AchieveMessage = (string)(value);
                break;

            case "rewardMsg":
                RewardsMessage = (string)(value);
                break;

            case "description":
                Description = (string)(value);
                break;
            }
        }
Пример #28
0
        public bool Equals(DestinyRecordDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     PresentationInfo == input.PresentationInfo ||
                     (PresentationInfo != null && PresentationInfo.Equals(input.PresentationInfo))
                 ) &&
                 (
                     LoreHash == input.LoreHash ||
                     (LoreHash.Equals(input.LoreHash))
                 ) &&
                 (
                     ObjectiveHashes == input.ObjectiveHashes ||
                     (ObjectiveHashes != null && ObjectiveHashes.SequenceEqual(input.ObjectiveHashes))
                 ) &&
                 (
                     RecordValueStyle == input.RecordValueStyle ||
                     (RecordValueStyle != null && RecordValueStyle.Equals(input.RecordValueStyle))
                 ) &&
                 (
                     ForTitleGilding == input.ForTitleGilding ||
                     (ForTitleGilding != null && ForTitleGilding.Equals(input.ForTitleGilding))
                 ) &&
                 (
                     TitleInfo == input.TitleInfo ||
                     (TitleInfo != null && TitleInfo.Equals(input.TitleInfo))
                 ) &&
                 (
                     CompletionInfo == input.CompletionInfo ||
                     (CompletionInfo != null && CompletionInfo.Equals(input.CompletionInfo))
                 ) &&
                 (
                     StateInfo == input.StateInfo ||
                     (StateInfo != null && StateInfo.Equals(input.StateInfo))
                 ) &&
                 (
                     Requirements == input.Requirements ||
                     (Requirements != null && Requirements.Equals(input.Requirements))
                 ) &&
                 (
                     ExpirationInfo == input.ExpirationInfo ||
                     (ExpirationInfo != null && ExpirationInfo.Equals(input.ExpirationInfo))
                 ) &&
                 (
                     IntervalInfo == input.IntervalInfo ||
                     (IntervalInfo != null && IntervalInfo.Equals(input.IntervalInfo))
                 ) &&
                 (
                     RewardItems == input.RewardItems ||
                     (RewardItems != null && RewardItems.SequenceEqual(input.RewardItems))
                 ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
 public void Update(DestinyProgressionDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (Scope != other.Scope)
     {
         Scope = other.Scope;
         OnPropertyChanged(nameof(Scope));
     }
     if (RepeatLastStep != other.RepeatLastStep)
     {
         RepeatLastStep = other.RepeatLastStep;
         OnPropertyChanged(nameof(RepeatLastStep));
     }
     if (Source != other.Source)
     {
         Source = other.Source;
         OnPropertyChanged(nameof(Source));
     }
     if (!Steps.DeepEqualsList(other.Steps))
     {
         Steps = other.Steps;
         OnPropertyChanged(nameof(Steps));
     }
     if (Visible != other.Visible)
     {
         Visible = other.Visible;
         OnPropertyChanged(nameof(Visible));
     }
     if (FactionHash != other.FactionHash)
     {
         FactionHash = other.FactionHash;
         OnPropertyChanged(nameof(FactionHash));
     }
     if (!Color.DeepEquals(other.Color))
     {
         Color.Update(other.Color);
         OnPropertyChanged(nameof(Color));
     }
     if (RankIcon != other.RankIcon)
     {
         RankIcon = other.RankIcon;
         OnPropertyChanged(nameof(RankIcon));
     }
     if (!RewardItems.DeepEqualsList(other.RewardItems))
     {
         RewardItems = other.RewardItems;
         OnPropertyChanged(nameof(RewardItems));
     }
     if (Hash != other.Hash)
     {
         Hash = other.Hash;
         OnPropertyChanged(nameof(Hash));
     }
     if (Index != other.Index)
     {
         Index = other.Index;
         OnPropertyChanged(nameof(Index));
     }
     if (Redacted != other.Redacted)
     {
         Redacted = other.Redacted;
         OnPropertyChanged(nameof(Redacted));
     }
 }
Пример #30
0
        public bool Equals(DestinyProgressionDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     RepeatLastStep == input.RepeatLastStep ||
                     (RepeatLastStep != null && RepeatLastStep.Equals(input.RepeatLastStep))
                 ) &&
                 (
                     Source == input.Source ||
                     (Source != null && Source.Equals(input.Source))
                 ) &&
                 (
                     Steps == input.Steps ||
                     (Steps != null && Steps.SequenceEqual(input.Steps))
                 ) &&
                 (
                     Visible == input.Visible ||
                     (Visible != null && Visible.Equals(input.Visible))
                 ) &&
                 (
                     FactionHash == input.FactionHash ||
                     (FactionHash.Equals(input.FactionHash))
                 ) &&
                 (
                     Color == input.Color ||
                     (Color != null && Color.Equals(input.Color))
                 ) &&
                 (
                     RankIcon == input.RankIcon ||
                     (RankIcon != null && RankIcon.Equals(input.RankIcon))
                 ) &&
                 (
                     RewardItems == input.RewardItems ||
                     (RewardItems != null && RewardItems.SequenceEqual(input.RewardItems))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }