mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 19:44:15 -04:00
17 lines
351 B
Go
17 lines
351 B
Go
|
package asset
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
|
||
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2loader/asset/types"
|
||
|
)
|
||
|
|
||
|
// Asset represents a game asset. It has a type, an asset source, a sub-path (within the
|
||
|
// asset source), and it can read data and seek within the data
|
||
|
type Asset interface {
|
||
|
io.ReadSeeker
|
||
|
Type() types.AssetType
|
||
|
Source() Source
|
||
|
Path() string
|
||
|
}
|