MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetCachedSpriteFiles

Function GetCachedSpriteFiles

src/spritecache.cpp:75–78  ·  view source on GitHub ↗

* Get the list of cached SpriteFiles. * @return Read-only list of cache SpriteFiles. */

Source from the content-addressed store, hash-verified

73 * @return Read-only list of cache SpriteFiles.
74 */
75std::span<const std::unique_ptr<SpriteFile>> GetCachedSpriteFiles()
76{
77 return _sprite_files;
78}
79
80/**
81 * Open/get the SpriteFile that is cached for use in the sprite cache.

Callers 1

UpdateWidgetSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected