public virtual void SetSound(Spriter spriter, SpriterFolder folder, SpriterFile file, TSound sound) { IAssetProvider <TSound> provider = SoundProviders.GetOrCreate(spriter); provider.Set(folder.Id, file.Id, sound); }
public virtual IAssetProvider <TSound> GetSoundProvider(SpriterEntity entity) { DefaultAssetProvider <TSound> provider = SoundProviders.GetOrCreate(entity.Spriter); return(new DefaultAssetProvider <TSound>(provider.AssetMappings)); }