1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2common/d2loader/asset/source.go
2021-01-10 02:44:42 -05:00

15 lines
238 B
Go

package asset
import (
"fmt"
"io"
)
// Source is an abstraction for something that can load and list assets
type Source interface {
fmt.Stringer
Open(name string) (io.ReadSeeker, error)
Path() string
Exists(subPath string) bool
}