Beispiel #1
0
        public bool Equals(Pickup other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Index.Equals(other.Index) &&
                   Unknown04h.Equals(other.Unknown04h) &&
                   Unknown08h.Equals(other.Unknown08h) &&
                   Amount.Equals(other.Amount) &&
                   Unknown10h.Equals(other.Unknown10h) &&
                   Unknown14h.Equals(other.Unknown14h) &&
                   Blip.Equals(other.Blip) &&
                   Timer.Equals(other.Timer) &&
                   Position.Equals(other.Position) &&
                   Unknown2Ch.Equals(other.Unknown2Ch) &&
                   Unknown30h.Equals(other.Unknown30h) &&
                   Rotation.Equals(other.Rotation) &&
                   Unknown40h.Equals(other.Unknown40h) &&
                   ObjectId.Equals(other.ObjectId) &&
                   RefNum.Equals(other.RefNum) &&
                   PickupType.Equals(other.PickupType) &&
                   Flags.Equals(other.Flags) &&
                   Flags2.Equals(other.Flags2) &&
                   Unknown4Bh.Equals(other.Unknown4Bh) &&
                   Unknown4Ch.Equals(other.Unknown4Ch) &&
                   Unknown50h.Equals(other.Unknown50h));
        }
Beispiel #2
0
        public bool Equals(SimpleVariables other)
        {
            if (other == null)
            {
                return(false);
            }

            return(ClosestSafehouseIndex.Equals(other.ClosestSafehouseIndex) &&
                   FadeInAfterLoad.Equals(other.FadeInAfterLoad) &&
                   Unknown04h.Equals(other.Unknown04h) &&
                   Unknown08h.Equals(other.Unknown08h) &&
                   CameraPosition.Equals(other.CameraPosition) &&
                   MillisecondsPerGameMinute.Equals(other.MillisecondsPerGameMinute) &&
                   LastClockTick.Equals(other.LastClockTick) &&
                   GameClockMonths.Equals(other.GameClockMonths) &&
                   GameClockDays.Equals(other.GameClockDays) &&
                   GameClockHours.Equals(other.GameClockHours) &&
                   GameClockMinutes.Equals(other.GameClockMinutes) &&
                   GameClockDayOfWeek.Equals(other.GameClockDayOfWeek) &&
                   HasPlayerCheated.Equals(other.HasPlayerCheated) &&
                   TimeInMilliseconds.Equals(other.TimeInMilliseconds) &&
                   FrameCounter.Equals(other.FrameCounter) &&
                   OldWeatherType.Equals(other.OldWeatherType) &&
                   NewWeatherType.Equals(other.NewWeatherType) &&
                   ForcedWeatherType.Equals(other.ForcedWeatherType) &&
                   WeatherInterpolation.Equals(other.WeatherInterpolation) &&
                   WeatherTypeInList.Equals(other.WeatherTypeInList) &&
                   Rain.Equals(other.Rain) &&
                   CameraCarZoomIndicator.Equals(other.CameraCarZoomIndicator) &&
                   CameraPedZoomIndicator.Equals(other.CameraPedZoomIndicator) &&
                   CameraGunZoomIndicator.Equals(other.CameraGunZoomIndicator) &&
                   Unknown6Ch.Equals(other.Unknown6Ch) &&
                   Unknown70h.Equals(other.Unknown70h) &&
                   Unknown74h.Equals(other.Unknown74h) &&
                   Unknown78h.Equals(other.Unknown78h) &&
                   Unknown7Ch.Equals(other.Unknown7Ch) &&
                   MaximumWantedLevel.Equals(other.MaximumWantedLevel) &&
                   MaximumChaos.Equals(other.MaximumChaos) &&
                   Unknown88h.Equals(other.Unknown88h) &&
                   Unknown8Ch.Equals(other.Unknown8Ch) &&
                   Unknown90h.Equals(other.Unknown90h) &&
                   TargetMarkerHandle.Equals(other.TargetMarkerHandle) &&
                   Unknown98h.Equals(other.Unknown98h) &&
                   Unknown9Ch.Equals(other.Unknown9Ch) &&
                   UnknownA0h.Equals(other.UnknownA0h) &&
                   UnknownA4h.Equals(other.UnknownA4h) &&
                   UnknownA8h.Equals(other.UnknownA8h) &&
                   UnknownACh.Equals(other.UnknownACh));
        }