public override bool Equals(object obj) { var item = obj as GameCategory; if (item is null) { return(false); } return(GameId.Equals(item.GameId) && CategoryId.Equals(item.CategoryId)); }
public override bool Equals(object?obj) { if (!(obj is GameInitialEvent target)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } return(Equals(this, target) && GameId.Equals(target.GameId) && Status.Equals(target.Status) && Score.Equals(target.Score)); }
internal bool RefreshGameId() { GameId curgameID = _currentGameId; using (ZetaDia.Memory.AcquireFrame()) { curgameID = ZetaDia.Service.CurrentGameId; } if (!curgameID.Equals(_currentGameId)) { Logger.Write(LogLevel.OutOfCombat, "New Game Started"); //Merge last GameStats with the Total TrackingStats.GameChanged(ref CurrentGameStats); //Create new GameStats CurrentGameStats = new GameStats(); //Update Account Details Bot.Character.Account.UpdateCurrentAccountDetails(); //Clear TrinityLoadOnce Used Profiles! TrinityLoadOnce.UsedProfiles.Clear(); //Clear Interactable Cache Profile.InteractableObjectCache.Clear(); //Clear Health Average ObjectCache.Objects.ClearHealthAverageStats(); //Renew bot Funky.ResetBot(); //Gold Inactivity GoldTimeoutChecker.LastCoinageUpdate = DateTime.Now; _currentGameId = curgameID; return(true); } return(false); }
private static void CheckGameIDChange() { GameId curgameID = FunkyGame.CurrentGameID; using (ZetaDia.Memory.AcquireFrame()) { try { curgameID = ZetaDia.Service.CurrentGameId; } catch { } } if (!curgameID.Equals(FunkyGame.CurrentGameID)) { int questId = 0; using (ZetaDia.Memory.AcquireFrame()) { try { questId = ZetaDia.CurrentQuest.QuestSNO; } catch { } } if (FunkyBaseExtension.PluginIsEnabled && !CharacterControl.AltHeroGamblingEnabled) { if (FunkyGame.CurrentStats == null) { FunkyGame.CurrentStats = new Stats.Stats(); } else { FunkyGame.CurrentStats.GameCount++; Stats.Stats.WriteProfileTrackerOutput(ref FunkyGame.CurrentStats); } } FunkyGame.AdventureMode = (questId == 312429); if (FunkyGame.AdventureMode) { Logger.DBLog.InfoFormat("Adventure Mode Active!"); FunkyGame.Bounty.Reset(); FunkyGame.Bounty.RefreshBountyInfo(); FunkyGame.Bounty.RefreshActiveQuests(); } FunkyGame.CurrentGameID = curgameID; FunkyGame.ShouldRefreshAccountDetails = true; GoldInactivity.LastCoinageUpdate = DateTime.Now; //Navigator.SearchGridProvider.Update(); if (OnGameIDChanged != null) { OnGameIDChanged(); } } }
protected bool Equals(Round other) { return(Id.Equals(other.Id) && GameId.Equals(other.GameId) && Team1Hand == other.Team1Hand && Team2Hand == other.Team2Hand && Result == other.Result && SequenceNumber == other.SequenceNumber); }
public override bool Equals(object other) { return(other is Game otherGame && GameId.Equals(otherGame.GameId)); }
public bool Equals(Message other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(WorldId == other.WorldId && LevelAreaId == other.LevelAreaId && Position.Equals(other.Position) && ProfilePosition.Equals(other.ProfilePosition) && ProfileActorSNO == other.ProfileActorSNO && ProfilePathPrecision.Equals(other.ProfilePathPrecision) && IsInCombat.Equals(other.IsInCombat) && IsInTown.Equals(other.IsInTown) && IsInGame.Equals(other.IsInGame) && IsLoadingWorld.Equals(other.IsLoadingWorld) && IsInParty.Equals(other.IsInParty) && ActorSNO == other.ActorSNO && ActorClass == other.ActorClass && HitpointsMaxTotal.Equals(other.HitpointsMaxTotal) && HitpointsCurrent.Equals(other.HitpointsCurrent) && GameId.Equals(other.GameId) && LastTimeInGame.Equals(other.LastTimeInGame) && LastTimeUpdated.Equals(other.LastTimeUpdated) && BattleTagHash == other.BattleTagHash && string.Equals(ProfileTagName, other.ProfileTagName) && NumPartymembers == other.NumPartymembers && CPlayerIndex == other.CPlayerIndex && HasRiftKeys.Equals(other.HasRiftKeys) && HighestLevelTieredRiftKey == other.HighestLevelTieredRiftKey && IsInGreaterRift.Equals(other.IsInGreaterRift) && HighestTeamRiftKey == other.HighestTeamRiftKey && RequestOpenRift.Equals(other.RequestOpenRift) && Equals(RiftKeyPriority, other.RiftKeyPriority) && UseHighestKeystone.Equals(other.UseHighestKeystone) && IsVendoring.Equals(other.IsVendoring)); }