mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 19:44:15 -04:00
15 lines
238 B
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
|
|
}
|