Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Audio.LegacySoundStyle Class Reference

Public Member Functions

 LegacySoundStyle (int soundId, int style, SoundType type=SoundType.Sound)
 
 LegacySoundStyle (int soundId, int style, int variations, SoundType type=SoundType.Sound)
 
LegacySoundStyle WithVolume (float volume)
 
LegacySoundStyle WithPitchVariance (float pitchVariance)
 
LegacySoundStyle AsMusic ()
 
LegacySoundStyle AsAmbient ()
 
LegacySoundStyle AsSound ()
 
bool Includes (int soundId, int style)
 
override SoundEffect GetRandomSound ()
 
float GetRandomPitch ()
 

Public Attributes

readonly int Variations
 
readonly int SoundId
 

Properties

int Style [get]
 
override bool IsTrackable [get]
 
float Volume [get]
 
float PitchVariance [get]
 
SoundType Type [get]
 

Private Member Functions

 LegacySoundStyle (int soundId, int style, int variations, SoundType type, float volume, float pitchVariance)
 

Private Attributes

readonly int _style
 
float _volume
 
float _pitchVariance
 
SoundType _type
 

Static Private Attributes

static readonly UnifiedRandom Random = new UnifiedRandom()
 
static UnifiedRandom _random = new UnifiedRandom()
 

Detailed Description

Definition at line 6 of file LegacySoundStyle.cs.


The documentation for this class was generated from the following file: