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

Method Register

assets.go:71–73  ·  view source on GitHub ↗

Register registers a resource loader for the given file format.

(ext string, loader FileLoader)

Source from the content-addressed store, hash-verified

69
70// Register registers a resource loader for the given file format.
71func (formats *Formats) Register(ext string, loader FileLoader) {
72 formats.formats[ext] = loader
73}
74
75// getExt returns the extension of the file(including extensions with `.` in them) from the given url.
76func getExt(path string) string {

Callers 13

TestFilesRegisterFunction · 0.45
TestFilesLoadFunction · 0.45
TestFilesMultipleLoadFunction · 0.45
TestFilesLoadNotExistFunction · 0.45
TestFilesLoadReaderDataFunction · 0.45
TestFilesUnloadFunction · 0.45
TestFilesResourceFunction · 0.45
RegisterGamepadMethod · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestFilesRegisterFunction · 0.36
TestFilesLoadFunction · 0.36
TestFilesMultipleLoadFunction · 0.36
TestFilesLoadNotExistFunction · 0.36
TestFilesLoadReaderDataFunction · 0.36
TestFilesUnloadFunction · 0.36
TestFilesResourceFunction · 0.36