NodeCache

Group
player
Methods
1
Fields
None

Getting one

client:getWidgetSpriteCache()

Methods

MethodReturnsDescription
reset()()Empty the cache, so each widget sprite is loaded again (and an override put since shows). Here an overridden sprite is never taken from the…

Returned by

MethodReturnsDescription
Client.getWidgetSpriteCacheNodeCacheThe client's widget sprite cache; reset() empties it (call it beside every override put and remove).

Method details

reset

reset: (NodeCache) -> ()

Empty the cache, so each widget sprite is loaded again (and an override put since shows). Here an overridden sprite is never taken from the client's cache, so a put or remove shows without it; this drops the override sprites Bento has built for widgets (their flips, outline and shadow), which are built again from the map. Nothing is asked of the client while both override maps are empty, so a reset does not raise on a build that cannot take overrides; with an override held, an error where the client cannot take them (as put).