| | 1 | | using DCL; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Linq; |
| | 4 | |
|
| | 5 | | namespace MainScripts.DCL.Controllers.AssetManager.AssetBundles.SceneAB |
| | 6 | | { |
| | 7 | | public class Asset_SceneAB : Asset |
| | 8 | | { |
| | 9 | | private SceneAbDto sceneAb; |
| | 10 | | private string contentUrl; |
| | 11 | |
|
| | 12 | | public void Setup(SceneAbDto dto, string contentUrl) |
| | 13 | | { |
| 0 | 14 | | this.contentUrl = contentUrl; |
| 0 | 15 | | sceneAb = dto; |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | public bool IsSceneConverted() => |
| 0 | 19 | | sceneAb != null; |
| | 20 | |
|
| 0 | 21 | | public string GetBaseUrl() => $"{contentUrl}{sceneAb.version}/"; |
| | 22 | |
|
| 0 | 23 | | public HashSet<string> GetConvertedFiles() => sceneAb.files.ToHashSet(); |
| | 24 | |
|
| | 25 | | public override void Cleanup() |
| | 26 | | { |
| | 27 | |
|
| 0 | 28 | | } |
| | 29 | |
|
| 0 | 30 | | public string GetVersion() => sceneAb.version; |
| | 31 | | } |
| | 32 | | } |