Documentation ¶
Overview ¶
Package mpq provides an MPQ Asset and Source implementation for d2loader
Index ¶
- func NewSource(sourcePath string) (asset.Source, error)
- type Asset
- func (a *Asset) Close() (err error)
- func (a *Asset) Data() ([]byte, error)
- func (a *Asset) Path() string
- func (a *Asset) Read(buf []byte) (n int, err error)
- func (a *Asset) Seek(offset int64, whence int) (n int64, err error)
- func (a *Asset) Source() asset.Source
- func (a *Asset) String() string
- func (a *Asset) Type() types.AssetType
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
Asset represents a file record within an MPQ archive
type Source ¶
type Source struct {
MPQ d2interface.Archive
}
Source is an implementation of an asset source for MPQ archives
func (*Source) Open ¶
func (v *Source) Open(name string) (a io.ReadSeeker, err error)
Open attempts to open a file within the MPQ archive
Click to show internal directories.
Click to hide internal directories.