This patch moves asset loading logic from multiple places (including the unintuitively named AssetCache) into a very visible, top-level ResourceLoader class. It also moves VM logic out of AssetCache into places where the VMs are actually used, since most VM state does not need to be exposed globally (e.g. music, sounds and particle effects).
This patch moves asset loading logic from multiple places (including the unintuitively named
AssetCache
) into a very visible, top-levelResourceLoader
class. It also moves VM logic out ofAssetCache
into places where the VMs are actually used, since most VM state does not need to be exposed globally (e.g. music, sounds and particle effects).