예제 #1
0
        public bool Equals(PhysicalObject other)
        {
            if (other == null)
            {
                return(false);
            }

            return(ModelIndex.Equals(other.ModelIndex) &&
                   Handle.Equals(other.Handle) &&
                   Position.Equals(other.Position) &&
                   UprootLimit.Equals(other.UprootLimit) &&
                   CreatedBy.Equals(other.CreatedBy) &&
                   IsPickup.Equals(other.IsPickup) &&
                   IsPickupInShop.Equals(other.IsPickupInShop) &&
                   IsPickupOutOfStock.Equals(other.IsPickupOutOfStock) &&
                   IsGlassCracked.Equals(other.IsGlassCracked) &&
                   IsGlassBroken.Equals(other.IsGlassBroken) &&
                   HasBeenDamaged.Equals(other.HasBeenDamaged) &&
                   UseCarColors.Equals(other.UseCarColors) &&
                   CostValue.Equals(other.CostValue) &&
                   BonusValue.Equals(other.BonusValue) &&
                   CollisionDamageMultiplier.Equals(other.CollisionDamageMultiplier) &&
                   CollisionDamageEffect.Equals(other.CollisionDamageEffect) &&
                   SpecialCollisionResponseCases.Equals(other.SpecialCollisionResponseCases) &&
                   EndOfLifeTime.Equals(other.EndOfLifeTime) &&
                   EntityType.Equals(other.EntityType) &&
                   EntityStatus.Equals(other.EntityStatus) &&
                   EntityFlags.Equals(other.EntityFlags));
        }
예제 #2
0
        public bool Equals(Pickup other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Type.Equals(other.Type) &&
                   HasBeenPickedUp.Equals(other.HasBeenPickedUp) &&
                   Value.Equals(other.Value) &&
                   ObjectIndex.Equals(other.ObjectIndex) &&
                   RegenerationTime.Equals(other.RegenerationTime) &&
                   ModelIndex.Equals(other.ModelIndex) &&
                   PoolIndex.Equals(other.PoolIndex) &&
                   Position.Equals(other.Position));
        }
예제 #3
0
        public bool Equals(PlayerPed other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Type.Equals(other.Type) &&
                   ModelIndex.Equals(other.ModelIndex) &&
                   Handle.Equals(other.Handle) &&
                   Position.Equals(other.Position) &&
                   CreatedBy.Equals(other.CreatedBy) &&
                   Health.Equals(other.Health) &&
                   Armor.Equals(other.Armor) &&
                   Weapons.SequenceEqual(other.Weapons) &&
                   MaxStamina.Equals(other.MaxStamina) &&
                   TargetableObjects.SequenceEqual(other.TargetableObjects) &&
                   MaxWantedLevel.Equals(other.MaxWantedLevel) &&
                   MaxChaosLevel.Equals(other.MaxChaosLevel) &&
                   ModelName.Equals(other.ModelName));
        }
예제 #4
0
        public bool Equals(Vehicle other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Type.Equals(other.Type) &&
                   ModelIndex.Equals(other.ModelIndex) &&
                   Handle.Equals(other.Handle) &&
                   Matrix.Equals(other.Matrix) &&
                   EntityType.Equals(other.EntityType) &&
                   EntityStatus.Equals(other.EntityStatus) &&
                   EntityFlags.Equals(other.EntityFlags) &&
                   AutoPilot.Equals(other.AutoPilot) &&
                   Color1.Equals(other.Color1) &&
                   Color2.Equals(other.Color2) &&
                   AlarmState.Equals(other.AlarmState) &&
                   MaxNumPassengers.Equals(other.MaxNumPassengers) &&
                   Field1D0h.Equals(other.Field1D0h) &&
                   Field1D4h.Equals(other.Field1D4h) &&
                   Field1D8h.Equals(other.Field1D8h) &&
                   Field1DCh.Equals(other.Field1DCh) &&
                   SteerAngle.Equals(other.SteerAngle) &&
                   GasPedal.Equals(other.GasPedal) &&
                   BrakePedal.Equals(other.BrakePedal) &&
                   CreatedBy.Equals(other.CreatedBy) &&
                   IsLawEnforcer.Equals(other.IsLawEnforcer) &&
                   IsLockedByScript.Equals(other.IsLockedByScript) &&
                   IsEngineOn.Equals(other.IsEngineOn) &&
                   IsHandbrakeOn.Equals(other.IsHandbrakeOn) &&
                   LightsOn.Equals(other.LightsOn) &&
                   HasFreebies.Equals(other.HasFreebies) &&
                   Health.Equals(other.Health) &&
                   CurrentGear.Equals(other.CurrentGear) &&
                   ChangeGearTime.Equals(other.ChangeGearTime) &&
                   TimeOfDeath.Equals(other.TimeOfDeath) &&
                   BombTimer.Equals(other.BombTimer) &&
                   DoorLock.Equals(other.DoorLock));
        }