OpenDiablo2/d2common/d2loader/asset/source.go

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
}