Skip to main content

SoundEffectsMap

A class in Root.Township, the global namespace.

Audio asset that maps each SoundEffect value to its SoundEffectSet. Later sets with the same effect win.

Constructors​

MemberWhat it is
SoundEffectsMap()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private static Logger loggerClass logger.
private List<SoundEffectSet> soundEffectSetsThe sound effect sets in this map.
private Dictionary<SoundEffect, SoundEffectSet> soundEventMapBacking field for SoundEventMap.

Properties​

MemberWhat it is
Dictionary<SoundEffect, SoundEffectSet> SoundEventMap { get; }Map from sound effect to its set, built on first use.

Methods​

1 private and internal method
MemberWhat it is
private void LoadSoundEventMap()Builds the map from soundEffectSets, skipping nulls.

Used in​

Members of other types that take, return or hold a SoundEffectsMap: