protected override void AddMemberStrings(List <FString> strings) { strings.Add(AmpPath); strings.Add(AmpReverb); strings.AddRange(Pedals.Select(x => x.ModelPath)); strings.AddRange(Processors.Select(x => x.ModelPath)); }
public void BuildPedals() { IPedals pedals = new Pedals(); pedals.Height = 125.4; pedals.Width = 87.1; pedals.Thickness = 23.14; pedals.Weight = 453.19; bike.SetPedals(pedals); }
public void BuildPedals() { IPedals pedals = new Pedals(); pedals.Height = 121.4; pedals.Width = 76.1; pedals.Thickness = 18.34; pedals.Weight = 253.19; bike.SetPedals(pedals); }
public float Pedal(Pedals pedal) { if (pedal == Pedals.accelerator) { return((2000.0f - ((float)input.Y + 1000.0f)) / 2000); } else { return((2000.0f - ((float)input.Rz + 1000.0f)) / 2000); } }
internal override void ReadData(AwesomeReader ar) { Pedals.Clear(); Processors.Clear(); AmpPath = ar.ReadUInt64(); GainLevel = ar.ReadSingle(); BassLevel = ar.ReadSingle(); MidLevel = ar.ReadSingle(); TrebleLevel = ar.ReadSingle(); ReverbLevel = ar.ReadSingle(); VolumeLevel = ar.ReadSingle(); AmpReverb = ar.ReadUInt64(); int pedalCount = ar.ReadInt32(); ar.BaseStream.Position += 4; int processorCount = ar.ReadInt32(); ar.BaseStream.Position += 4; // Reads pedals for (int i = 0; i < pedalCount; i++) { Pedal pedal = new Pedal(); pedal.ModelPath = ar.ReadUInt64(); pedal.Flag1 = ar.ReadBoolean(); pedal.Flag2 = ar.ReadBoolean(); pedal.Flag3 = ar.ReadBoolean(); pedal.Flag4 = ar.ReadBoolean(); pedal.Knob1 = ar.ReadSingle(); pedal.Knob2 = ar.ReadSingle(); pedal.Knob3 = ar.ReadSingle(); Pedals.Add(pedal); } // Reads audio processors for (int i = 0; i < processorCount; i++) { AudioProcessor processor = new AudioProcessor(); processor.ModelPath = ar.ReadUInt64(); processor.Knob1 = ar.ReadSingle(); processor.Knob2 = ar.ReadSingle(); Processors.Add(processor); } }