1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 16:27:18 -04:00
OpenDiablo2/common/FileProvider.go

10 lines
282 B
Go
Raw Normal View History

2019-11-06 22:12:15 -05:00
package common
2019-10-25 19:37:04 -04:00
2019-11-06 22:12:15 -05:00
import "github.com/OpenDiablo2/OpenDiablo2/palettedefs"
2019-10-25 19:37:04 -04:00
// FileProvider is an instance that can provide different types of files
type FileProvider interface {
LoadFile(fileName string) []byte
2019-11-06 22:12:15 -05:00
LoadSprite(fileName string, palette palettedefs.PaletteType) *Sprite
2019-10-25 19:37:04 -04:00
}