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

Struct Formats

assets.go:46–52  ·  view source on GitHub ↗

Formats manages resource handling of registered file formats.

Source from the content-addressed store, hash-verified

44
45// Formats manages resource handling of registered file formats.
46type Formats struct {
47 // formats maps from file extensions to resource loaders.
48 formats map[string]FileLoader
49
50 // root is the directory which is prepended to every resource url internally.
51 root string
52}
53
54// SetRoot can be used to change the default directory from `assets` to whatever you want.
55//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected