Пример #1
0
 public override bool Equals(object obj)
 {
     return(obj is Hook hook &&
            WorldSize == hook.WorldSize &&
            BaseThrustM == hook.BaseThrustM &&
            BaseThrustB == hook.BaseThrustB &&
            BoostThrust == hook.BoostThrust &&
            BoostCooldownTimeM == hook.BoostCooldownTimeM &&
            BoostCooldownTimeB == hook.BoostCooldownTimeB &&
            BoostDuration == hook.BoostDuration &&
            BoostSpeed == hook.BoostSpeed &&
            Drag == hook.Drag &&
            BoomLife == hook.BoomLife &&
            PointsPerKillShip == hook.PointsPerKillShip &&
            PointsPerUniverseDeath == hook.PointsPerUniverseDeath &&
            PointsMultiplierDeath == hook.PointsMultiplierDeath &&
            PointsPerKillFleet == hook.PointsPerKillFleet &&
            PointsPerKillFleetMax == hook.PointsPerKillFleetMax &&
            PointsPerKillFleetStep == hook.PointsPerKillFleetStep &&
            PointsPerKillFleetPerStep == hook.PointsPerKillFleetPerStep &&
            ComboDelay == hook.ComboDelay &&
            ComboPointsStep == hook.ComboPointsStep &&
            SpawnShipCount == hook.SpawnShipCount &&
            ShotCooldownTimeM == hook.ShotCooldownTimeM &&
            ShotCooldownTimeB == hook.ShotCooldownTimeB &&
            ShotThrustM == hook.ShotThrustM &&
            ShotThrustB == hook.ShotThrustB &&
            SeekerThrustMultiplier == hook.SeekerThrustMultiplier &&
            PrecisionBulletsNoise == hook.PrecisionBulletsNoise &&
            PrecisionBullets == hook.PrecisionBullets &&
            PrecisionBulletsMinimumRange == hook.PrecisionBulletsMinimumRange &&
            BulletLife == hook.BulletLife &&
            SeekerLifeMultiplier == hook.SeekerLifeMultiplier &&
            Obstacles == hook.Obstacles &&
            ObstacleMinSize == hook.ObstacleMinSize &&
            ObstacleMaxSize == hook.ObstacleMaxSize &&
            TeamMode == hook.TeamMode &&
            RoyaleMode == hook.RoyaleMode &&
            CTFMode == hook.CTFMode &&
            CTFCarryBurden == hook.CTFCarryBurden &&
            CTFSpawnDistance == hook.CTFSpawnDistance &&
            SumoMode == hook.SumoMode &&
            SumoRingSize == hook.SumoRingSize &&
            LeaderboardRefresh == hook.LeaderboardRefresh &&
            Fishes == hook.Fishes &&
            FishThrust == hook.FishThrust &&
            FishFlockAlignment == hook.FishFlockAlignment &&
            FishFlockCohesion == hook.FishFlockCohesion &&
            FishFlockCohesionMaximumDistance == hook.FishFlockCohesionMaximumDistance &&
            FishFlockSeparation == hook.FishFlockSeparation &&
            FishFlockSeparationMinimumDistance == hook.FishFlockSeparationMinimumDistance &&
            FishFlockWeight == hook.FishFlockWeight &&
            FishCycle == hook.FishCycle &&
            FlockAlignment == hook.FlockAlignment &&
            FlockCohesion == hook.FlockCohesion &&
            FlockCohesionMaximumDistance == hook.FlockCohesionMaximumDistance &&
            FlockSeparation == hook.FlockSeparation &&
            FlockSeparationMinimumDistance == hook.FlockSeparationMinimumDistance &&
            FlockWeight == hook.FlockWeight &&
            FlockSpeed == hook.FlockSpeed &&
            PickupSeekers == hook.PickupSeekers &&
            SeekerNegotiation == hook.SeekerNegotiation &&
            SeekerLead == hook.SeekerLead &&
            SeekerRange == hook.SeekerRange &&
            SeekerCycle == hook.SeekerCycle &&
            ShipGainBySizeM == hook.ShipGainBySizeM &&
            ShipGainBySizeB == hook.ShipGainBySizeB &&
            StepTime == hook.StepTime &&
            PickupShields == hook.PickupShields &&
            ShieldStrength == hook.ShieldStrength &&
            FiringSequenceDelay == hook.FiringSequenceDelay &&
            SpawnLocationMode == hook.SpawnLocationMode &&
            SpawnLocation.Equals(hook.SpawnLocation) &&
            PlayerCountGracePeriodMS == hook.PlayerCountGracePeriodMS &&
            FleetWeaponStackDepth == hook.FleetWeaponStackDepth &&
            ShieldTimeMS == hook.ShieldTimeMS &&
            Name == hook.Name &&
            Description == hook.Description &&
            Instructions == hook.Instructions &&
            Thumbnail == hook.Thumbnail &&
            Hidden == hook.Hidden &&
            EqualityComparer <string[]> .Default.Equals(AllowedColors, hook.AllowedColors) &&
            Weight == hook.Weight &&
            MaxNameLength == hook.MaxNameLength &&
            AutoRemoveOnEmptyThreshold == hook.AutoRemoveOnEmptyThreshold &&
            AbandonBuffer == hook.AbandonBuffer &&
            EarnedShipDelay == hook.EarnedShipDelay &&
            RoyaleCountdownDurationSeconds == hook.RoyaleCountdownDurationSeconds &&
            RoyaleResizeSpeed == hook.RoyaleResizeSpeed &&
            RoyaleDoubleStep1 == hook.RoyaleDoubleStep1 &&
            RoyaleDoubleStep2 == hook.RoyaleDoubleStep2 &&
            CanSpawn == hook.CanSpawn &&
            EinsteinCoefficient == hook.EinsteinCoefficient &&
            Tokens == hook.Tokens);
 }
Пример #2
0
 public override bool Equals(object obj)
 {
     return(obj is Hook hook &&
            WorldSize == hook.WorldSize &&
            WorldResizeEnabled == hook.WorldResizeEnabled &&
            WorldResizeSpeed == hook.WorldResizeSpeed &&
            WorldSizeBasic == hook.WorldSizeBasic &&
            WorldSizeDeltaPerPlayer == hook.WorldSizeDeltaPerPlayer &&
            WorldMinPlayersToResize == hook.WorldMinPlayersToResize &&
            BaseThrustM == hook.BaseThrustM &&
            BaseThrustB == hook.BaseThrustB &&
            BoostThrust == hook.BoostThrust &&
            BoostCooldownTimeM == hook.BoostCooldownTimeM &&
            BoostCooldownTimeB == hook.BoostCooldownTimeB &&
            BoostDuration == hook.BoostDuration &&
            BoostSpeed == hook.BoostSpeed &&
            Drag == hook.Drag &&
            BoomLife == hook.BoomLife &&
            BoomDrag == hook.BoomDrag &&
            PointsPerKillShip == hook.PointsPerKillShip &&
            PointsPerUniverseDeath == hook.PointsPerUniverseDeath &&
            PointsMultiplierDeath == hook.PointsMultiplierDeath &&
            PointsPerKillFleet == hook.PointsPerKillFleet &&
            PointsPerKillFleetMax == hook.PointsPerKillFleetMax &&
            PointsPerKillFleetStep == hook.PointsPerKillFleetStep &&
            PointsPerKillFleetPerStep == hook.PointsPerKillFleetPerStep &&
            ComboDelay == hook.ComboDelay &&
            ComboPointsStep == hook.ComboPointsStep &&
            HealthHitCost == hook.HealthHitCost &&
            HealthRegenerationPerFrame == hook.HealthRegenerationPerFrame &&
            SpawnShipCount == hook.SpawnShipCount &&
            ShotCooldownTimeM == hook.ShotCooldownTimeM &&
            ShotCooldownTimeB == hook.ShotCooldownTimeB &&
            ShotCooldownTimeShark == hook.ShotCooldownTimeShark &&
            ShotCooldownTimeBotM == hook.ShotCooldownTimeBotM &&
            ShotCooldownTimeBotB == hook.ShotCooldownTimeBotB &&
            ShotThrustM == hook.ShotThrustM &&
            ShotThrustB == hook.ShotThrustB &&
            MaxHealth == hook.MaxHealth &&
            MaxHealthBot == hook.MaxHealthBot &&
            SeekerThrustMultiplier == hook.SeekerThrustMultiplier &&
            PrecisionBulletsNoise == hook.PrecisionBulletsNoise &&
            PrecisionBullets == hook.PrecisionBullets &&
            PrecisionBulletsMinimumRange == hook.PrecisionBulletsMinimumRange &&
            ShieldCannonballLife == hook.ShieldCannonballLife &&
            BulletLife == hook.BulletLife &&
            SeekerLifeMultiplier == hook.SeekerLifeMultiplier &&
            BotBase == hook.BotBase &&
            BotPerXPoints == hook.BotPerXPoints &&
            Wormholes == hook.Wormholes &&
            WormholesDestination == hook.WormholesDestination &&
            Obstacles == hook.Obstacles &&
            PickupShieldsMultiplier == hook.PickupShieldsMultiplier &&
            ObstaclesMultiplier == hook.ObstaclesMultiplier &&
            ObstacleMaxMomentum == hook.ObstacleMaxMomentum &&
            ObstacleMinSize == hook.ObstacleMinSize &&
            ObstacleMaxSize == hook.ObstacleMaxSize &&
            ObstacleMaxMomentumWeatherMultiplier == hook.ObstacleMaxMomentumWeatherMultiplier &&
            ObstaclesSpawnShieldCannons == hook.ObstaclesSpawnShieldCannons &&
            ObstacleBorderBuffer == hook.ObstacleBorderBuffer &&
            TeamMode == hook.TeamMode &&
            RoyaleMode == hook.RoyaleMode &&
            CTFMode == hook.CTFMode &&
            CTFCarryBurden == hook.CTFCarryBurden &&
            CTFSpawnDistance == hook.CTFSpawnDistance &&
            SumoMode == hook.SumoMode &&
            SumoRingSize == hook.SumoRingSize &&
            LeaderboardRefresh == hook.LeaderboardRefresh &&
            Fishes == hook.Fishes &&
            FishesMultiplier == hook.FishesMultiplier &&
            FishThrust == hook.FishThrust &&
            FishFlockAlignment == hook.FishFlockAlignment &&
            FishFlockCohesion == hook.FishFlockCohesion &&
            FishFlockCohesionMaximumDistance == hook.FishFlockCohesionMaximumDistance &&
            FishFlockSeparation == hook.FishFlockSeparation &&
            FishFlockSeparationMinimumDistance == hook.FishFlockSeparationMinimumDistance &&
            FishFlockWeight == hook.FishFlockWeight &&
            FishOOBWeight == hook.FishOOBWeight &&
            FishCycle == hook.FishCycle &&
            FlockAlignment == hook.FlockAlignment &&
            FlockCohesion == hook.FlockCohesion &&
            FlockCohesionMaximumDistance == hook.FlockCohesionMaximumDistance &&
            FlockSeparation == hook.FlockSeparation &&
            FlockSeparationMinimumDistance == hook.FlockSeparationMinimumDistance &&
            FlockWeight == hook.FlockWeight &&
            SnakeWeight == hook.SnakeWeight &&
            BossMode == hook.BossMode &&
            EqualityComparer <Sprites[]> .Default.Equals(BossModeSprites, hook.BossModeSprites) &&
            FlockSpeed == hook.FlockSpeed &&
            PickupSeekers == hook.PickupSeekers &&
            PickupRobotGuns == hook.PickupRobotGuns &&
            PickupSeekersMultiplier == hook.PickupSeekersMultiplier &&
            SeekerNegotiation == hook.SeekerNegotiation &&
            SeekerLead == hook.SeekerLead &&
            SeekerRange == hook.SeekerRange &&
            SeekerCycle == hook.SeekerCycle &&
            ShipGainBySizeM == hook.ShipGainBySizeM &&
            ShipGainBySizeB == hook.ShipGainBySizeB &&
            MapEnabled == hook.MapEnabled &&
            StepTime == hook.StepTime &&
            OutOfBoundsDeathLine == hook.OutOfBoundsDeathLine &&
            OutOfBoundsBorder == hook.OutOfBoundsBorder &&
            OutOfBoundsDecayDistance == hook.OutOfBoundsDecayDistance &&
            BotRespawnDelay == hook.BotRespawnDelay &&
            BotMaxRespawnDelay == hook.BotMaxRespawnDelay &&
            PickupShields == hook.PickupShields &&
            ShieldStrength == hook.ShieldStrength &&
            FollowFirstShip == hook.FollowFirstShip &&
            FiringSequenceDelay == hook.FiringSequenceDelay &&
            SpawnLocationMode == hook.SpawnLocationMode &&
            SpawnLocation.Equals(hook.SpawnLocation) &&
            LifecycleDuration == hook.LifecycleDuration &&
            PlayerCountGracePeriodMS == hook.PlayerCountGracePeriodMS &&
            FleetWeaponStackDepth == hook.FleetWeaponStackDepth &&
            SpawnInvulnerabilityTime == hook.SpawnInvulnerabilityTime &&
            Name == hook.Name &&
            Description == hook.Description &&
            Instructions == hook.Instructions &&
            Hidden == hook.Hidden &&
            EqualityComparer <string[]> .Default.Equals(AllowedColors, hook.AllowedColors) &&
            Weight == hook.Weight &&
            MaxNameLength == hook.MaxNameLength &&
            GearheadName == hook.GearheadName &&
            GearheadRegen == hook.GearheadRegen &&
            AutoRemoveOnEmptyThreshold == hook.AutoRemoveOnEmptyThreshold &&
            ExplosionTime == hook.ExplosionTime &&
            AbandonBuffer == hook.AbandonBuffer &&
            EarnedShipDelay == hook.EarnedShipDelay &&
            RoyaleCountdownDurationSeconds == hook.RoyaleCountdownDurationSeconds &&
            RoyaleResizeSpeed == hook.RoyaleResizeSpeed &&
            RoyaleDoubleStep1 == hook.RoyaleDoubleStep1 &&
            RoyaleDoubleStep2 == hook.RoyaleDoubleStep2 &&
            CanSpawn == hook.CanSpawn);
 }