mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
55dc3e42ed
* adding comments to d2interface for linter * moved d2render renderer interfaces and types into d2interface
10 lines
309 B
Go
10 lines
309 B
Go
package d2interface
|
|
|
|
// AudioProvider is something that can play music, load audio files managed
|
|
// by the asset manager, and set the game engine's volume levels
|
|
type AudioProvider interface {
|
|
PlayBGM(song string)
|
|
LoadSoundEffect(sfx string) (SoundEffect, error)
|
|
SetVolumes(bgmVolume, sfxVolume float64)
|
|
}
|