Ejemplo n.º 1
0
 public static void RemoveHerbie(Herbie herbie)
 {
     if (!herbiesToRemove.Contains(herbie))
     {
         herbiesToRemove.Add(herbie);
     }
 }
Ejemplo n.º 2
0
 public static void AddHerbie(Herbie herbie)
 {
     if (!herbiesToAdd.Contains(herbie))
     {
         if (!Herbies.Contains(herbie))
         {
             herbiesToAdd.Add(herbie);
         }
     }
 }
Ejemplo n.º 3
0
        public HerbieProps(Herbie herbie)
        {
            Herbie = herbie;
            Entity = herbie.Vehicle;

            EnginePulley = new AnimateProp(ModelHandler.EnginePulley, Entity, "engine_pulley_dummy", Vector3.Zero, Vector3.Zero);
            EnginePulley[AnimationType.Rotation][AnimationStep.First][Coordinate.Y].Setup(true, false, true, 0, 360, 1, 90, 1);
            EnginePulley[AnimationType.Rotation][AnimationStep.First][Coordinate.Y].DoNotInvert = true;

            TimingPulley = new AnimateProp(ModelHandler.TimingPulley, Entity, "timing_pulley_dummy", Vector3.Zero, Vector3.Zero);
            TimingPulley[AnimationType.Rotation][AnimationStep.First][Coordinate.Y].Setup(true, false, true, 0, 360, 1, 180, 1);
            TimingPulley[AnimationType.Rotation][AnimationStep.First][Coordinate.Y].DoNotInvert = true;

            FuelNeedle  = new AnimateProp(ModelHandler.FuelNeedle, Entity, "1963beetle_fuel_needle_dummy", Vector3.Zero, Vector3.Zero);
            SpeedNeedle = new AnimateProp(ModelHandler.SpeedNeedle, Entity, "1963beetle_speed_needle_dummy", Vector3.Zero, Vector3.Zero);
        }