C# Class UnityRose.Cache

This class is used to cache resources that are used most commonly in the current map
Mostrar archivo Open project: osROSE/UnityRose Class Usage Examples

Public Methods

Method Description
Cache ( ResourceManager rm, int maxSize ) : System

Constructor for a Cache with a max size

request ( string resource ) : object

Method Details

Cache() public method

Constructor for a Cache with a max size
public Cache ( ResourceManager rm, int maxSize ) : System
rm ResourceManager A reference to the resource manager for loading/unloading resources
maxSize int The max size for this cache
return System

request() public method

public request ( string resource ) : object
resource string
return object