TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetMusicSlot() [2/2]

static int Terraria.ModLoader.MusicLoader.GetMusicSlot ( string musicPath)
inlinestatic

Gets the music id of the track with the specified full path. The path must be prefixed with a mod name and must not have a file extension.

Definition at line 38 of file MusicLoader.cs.

39 {
40 if (musicByPath.ContainsKey(musicPath))
41 {
42 return musicByPath[musicPath];
43 }
44 return 0;
45 }
static readonly Dictionary< string, int > musicByPath

References Terraria.ModLoader.MusicLoader.musicByPath.