mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-12-28 13:06:55 -05:00
783993470e
* fixed lint error in d2app/app.go * go fmt entire project * adding doc.go for d2records * fixed lint issues in d2core/d2map * fixed lint error in d2interface/palette.go * fixed lint error in d2core/d2hero/hero_state_factory.go * adding dov.go to d2common/d2geom * fixing lint errors in d2common/d2loader * adding doc.go to d2common/d2cache * adding doc files for d2datautils, d2util, d2path * adding package doc strings for mapgen, in-geam help screen, and tcp client connection * removed all cuddling lint errors * changed stamina equality check to '<=' instead of '<'
16 lines
289 B
Go
16 lines
289 B
Go
package asset
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2loader/asset/types"
|
|
)
|
|
|
|
// Source is an abstraction for something that can load and list assets
|
|
type Source interface {
|
|
fmt.Stringer
|
|
Type() types.SourceType
|
|
Open(name string) (Asset, error)
|
|
Path() string
|
|
}
|