MCPcopy Index your code
hub / github.com/EngoEngine/engo / Load

Method Load

common/tmx_filetype.go:34–42  ·  view source on GitHub ↗

Load will load the tmx file and any other image resources that are needed

(url string, data io.Reader)

Source from the content-addressed store, hash-verified

32
33// Load will load the tmx file and any other image resources that are needed
34func (t *tmxLoader) Load(url string, data io.Reader) error {
35 lvl, err := createLevelFromTmx(data, url, t.root)
36 if err != nil {
37 return err
38 }
39
40 t.levels[url] = TMXResource{Level: lvl, url: url}
41 return nil
42}
43
44// Unload removes the preloaded level from the cache
45func (t *tmxLoader) Unload(url string) error {

Callers

nothing calls this directly

Calls 1

createLevelFromTmxFunction · 0.85

Tested by

no test coverage detected