mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 19:44:15 -04:00
13 lines
269 B
Go
13 lines
269 B
Go
|
package asset
|
||
|
|
||
|
import (
|
||
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2loader/asset/types"
|
||
|
)
|
||
|
|
||
|
// Source is an abstraction for something that can load and list assets
|
||
|
type Source interface {
|
||
|
Type() types.SourceType
|
||
|
Open(name string) (Asset, error)
|
||
|
String() string
|
||
|
}
|