diff --git a/js/SoundLevelEnum.js b/js/SoundLevelEnum.ts similarity index 100% rename from js/SoundLevelEnum.js rename to js/SoundLevelEnum.ts diff --git a/js/SoundScope.ts b/js/SoundScope.ts new file mode 100644 index 00000000..0e4b805d --- /dev/null +++ b/js/SoundScope.ts @@ -0,0 +1,24 @@ +// Copyright 2022, University of Colorado Boulder + +/** + * This enum is used to describe whether a sound is part of the "basic" sounds or the "enhanced" sounds. + * + * @author John Blanco (PhET Interactive Simulations) + */ + +import Enumeration from '../../phet-core/js/Enumeration.js'; +import EnumerationValue from '../../phet-core/js/EnumerationValue.js'; +import tambo from './tambo.js'; + +class SoundScope extends EnumerationValue { + static BASIC = new SoundScope(); + static ENHANCED = new SoundScope(); + + // Gets a list of keys, values and mapping between them. For use by EnumerationProperty and PhET-iO. + static enumeration = new Enumeration( SoundScope, { + phetioDocumentation: 'describes whether a sound is considered part of the basic or the enhanced sounds for the sim' + } ); +} + +tambo.register( 'SoundScope', SoundScope ); +export default SoundScope; \ No newline at end of file