1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-05 09:47:18 -05:00
OpenDiablo2/d2common/d2loader/asset/source.go

15 lines
238 B
Go
Raw Normal View History

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
}