MCPcopy
hub / github.com/EngoEngine/engo / FileLoader

Interface FileLoader

assets.go:11–20  ·  view source on GitHub ↗

FileLoader implements support for loading and releasing file resources.

Source from the content-addressed store, hash-verified

9
10// FileLoader implements support for loading and releasing file resources.
11type FileLoader interface {
12 // Load loads the given resource into memory.
13 Load(url string, data io.Reader) error
14
15 // Unload releases the given resource from memory.
16 Unload(url string) error
17
18 // Resource returns the given resource, and an error if it didn't succeed.
19 Resource(url string) (Resource, error)
20}
21
22// FileLoaderRooter must be implemented by file loaders that need to known the
23// root for their own functionning. This is generaly because they need to

Callers 24

TestFilesLoadFunction · 0.65
TestFilesMultipleLoadFunction · 0.65
TestFilesLoadNotExistFunction · 0.65
loadMethod · 0.65
LoadReaderDataMethod · 0.65
createAtlasFromXMLFunction · 0.65
TextDimensionsMethod · 0.65
TestFilesUnloadFunction · 0.65
UnloadMethod · 0.65

Implementers 7

testLoaderassets_test.go
Formatsassets.go
fontLoadercommon/font_filetype.go
tmxLoadercommon/tmx_filetype.go
audioLoadercommon/audio_filetype.go
textureAtlasLoadercommon/texture_atlas.go
imageLoadercommon/render_filetype.go

Calls

no outgoing calls

Tested by

no test coverage detected