Пример #1
0
        public bool Equals(Garage other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Type.Equals(other.Type) &&
                   State.Equals(other.State) &&
                   Field02h.Equals(other.Field02h) &&
                   ClosingWithoutTargetVehicle.Equals(other.ClosingWithoutTargetVehicle) &&
                   Deactivated.Equals(other.Deactivated) &&
                   ResprayHappened.Equals(other.ResprayHappened) &&
                   TargetModelIndex.Equals(other.TargetModelIndex) &&
                   Door1Pointer.Equals(other.Door1Pointer) &&
                   Door2Pointer.Equals(other.Door2Pointer) &&
                   Door1Handle.Equals(other.Door1Handle) &&
                   Door2Handle.Equals(other.Door2Handle) &&
                   IsDoor1Dummy.Equals(other.IsDoor1Dummy) &&
                   IsDoor2Dummy.Equals(other.IsDoor2Dummy) &&
                   RecreateDoorOnNextRefresh.Equals(other.RecreateDoorOnNextRefresh) &&
                   RotatingDoor.Equals(other.RotatingDoor) &&
                   CameraFollowsPlayer.Equals(other.CameraFollowsPlayer) &&
                   X1.Equals(other.X1) &&
                   X2.Equals(other.X2) &&
                   Y1.Equals(other.Y1) &&
                   Y2.Equals(other.Y2) &&
                   Z1.Equals(other.Z1) &&
                   Z2.Equals(other.Z2) &&
                   DoorOpenOffset.Equals(other.DoorOpenOffset) &&
                   DoorOpenMax.Equals(other.DoorOpenMax) &&
                   Door1X.Equals(other.Door1X) &&
                   Door1Y.Equals(other.Door1Y) &&
                   Door2X.Equals(other.Door2X) &&
                   Door2Y.Equals(other.Door2Y) &&
                   Door1Z.Equals(other.Door1Z) &&
                   Door2Z.Equals(other.Door2Z) &&
                   Timer.Equals(other.Timer) &&
                   CollectedCarsState.Equals(other.CollectedCarsState) &&
                   TargetCarPointer.Equals(other.TargetCarPointer) &&
                   Field96h.Equals(other.Field96h) &&
                   StoredCar.Equals(other.StoredCar));
        }
Пример #2
0
 public Garage(Garage other)
 {
     Type     = other.Type;
     State    = other.State;
     Field02h = other.Field02h;
     ClosingWithoutTargetVehicle = other.ClosingWithoutTargetVehicle;
     Deactivated               = other.Deactivated;
     ResprayHappened           = other.ResprayHappened;
     TargetModelIndex          = other.TargetModelIndex;
     Door1Pointer              = other.Door1Pointer;
     Door2Pointer              = other.Door2Pointer;
     Door1Handle               = other.Door1Handle;
     Door2Handle               = other.Door2Handle;
     IsDoor1Dummy              = other.IsDoor1Dummy;
     IsDoor2Dummy              = other.IsDoor2Dummy;
     RecreateDoorOnNextRefresh = other.RecreateDoorOnNextRefresh;
     RotatingDoor              = other.RotatingDoor;
     CameraFollowsPlayer       = other.CameraFollowsPlayer;
     X1                 = other.X1;
     X2                 = other.X2;
     Y1                 = other.Y1;
     Y2                 = other.Y2;
     Z1                 = other.Z1;
     Z2                 = other.Z2;
     DoorOpenOffset     = other.DoorOpenOffset;
     DoorOpenMax        = other.DoorOpenMax;
     Door1X             = other.Door1X;
     Door1Y             = other.Door1Y;
     Door2X             = other.Door2X;
     Door2Y             = other.Door2Y;
     Door1Z             = other.Door1Z;
     Door2Z             = other.Door2Z;
     Timer              = other.Timer;
     CollectedCarsState = other.CollectedCarsState;
     TargetCarPointer   = other.TargetCarPointer;
     Field96h           = other.Field96h;
     StoredCar          = new StoredCar(other.StoredCar);
 }
Пример #3
0
 public Garage()
 {
     StoredCar = new StoredCar();
 }