public dynamic MakePedalSetting(GameVersion gameVersion) { if (gameVersion == GameVersion.RS2014) { return(new DLCPackage.Manifest.Tone.Pedal2014 { PedalKey = Key, KnobValues = Knobs.ToDictionary(k => k.Key, k => k.DefaultValue), Category = Category, Type = Type }); } else { return(new DLCPackage.Tone.Pedal { PedalKey = Key, KnobValues = Knobs.ToDictionary(k => k.Key, k => (decimal)k.DefaultValue) }); } }
public dynamic MakePedalSetting(GameVersion gameVersion) { if (gameVersion == GameVersion.RS2014) { return(new Pedal2014 { PedalKey = Key, KnobValues = Knobs.ToDictionary(k => k.Key, k => k.DefaultValue), Skin = Skin, SkinIndex = SkinIndex, Category = Category, Type = Type }); } else { return(new Pedal { PedalKey = Key, KnobValues = Knobs.ToDictionary(k => k.Key, k => (decimal)k.DefaultValue) }); } }