public void AddSound(SoundType type, string soundPath, ModSound modSound = null)
{
int id = SoundLoader.ReserveSoundID(type);
SoundLoader.sounds[type][soundPath] = id;
if (modSound != null)
{
SoundLoader.modSounds[type][id] = modSound;
modSound.sound = ModLoader.GetSound(soundPath);
}
}