1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-11 23:08:03 -05:00
OpenDiablo2/d2common/d2interface/archived_file_manager.go
dk 8809fb2c22
Made abstractiong for the file manager (#542)
I realized that the file manager is actually managing file access
to the archives, but it's doing so through the archive manager.

I've renamed it, it's now called ArchivedFileManager because that
is really what it is.
2020-07-05 00:00:00 -04:00

11 lines
312 B
Go

package d2interface
// ArchivedFileManager manages file access to the archives being managed
// by the ArchiveManager
type ArchivedFileManager interface {
Cacher
LoadFileStream(filePath string) (ArchiveDataStream, error)
LoadFile(filePath string) ([]byte, error)
FileExists(filePath string) (bool, error)
}