From 82bab3d731f63342f6efafdfaf5a2b347b9771ed Mon Sep 17 00:00:00 2001 From: jbphet Date: Thu, 14 Apr 2022 16:28:56 -0600 Subject: [PATCH] changed file name from .js to .ts, see https://github.com/phetsims/tambo/issues/160 --- js/{SoundLevelEnum.js => SoundLevelEnum.ts} | 0 js/SoundScope.ts | 24 +++++++++++++++++++++ 2 files changed, 24 insertions(+) rename js/{SoundLevelEnum.js => SoundLevelEnum.ts} (100%) create mode 100644 js/SoundScope.ts 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