private void Init(CustomLevelCollectionSO beatmapLevelCollectionSO) { _isPackAlwaysOwned = true; _packID = "CustomMaps"; _packName = "Custom Maps"; _coverImage = Utils.LoadSpriteFromResources("SongLoaderPlugin.Icons.CustomSongs.png"); _beatmapLevelCollection = beatmapLevelCollectionSO; }
public static CustomBeatmapLevelPackSO GetPack(CustomLevelCollectionSO beatmapLevelCollectionSO, bool WipPack = false) { var newPack = CreateInstance <CustomBeatmapLevelPackSO>(); newPack.Init(beatmapLevelCollectionSO, WipPack); return(newPack); // var packs = Resources.FindObjectsOfTypeAll<BeatmapLevelPackSO>(); // return pack; }
public void AddToPack(CustomLevelCollectionSO beatmapLevelCollectionSO) { var levelcollection = this.beatmapLevelCollection as CustomLevelCollectionSO; foreach (BeatmapLevelSO a in levelcollection._levelList) { var customlevel = a as CustomLevel; if (!beatmapLevelCollectionSO._levelList.Contains(a)) { beatmapLevelCollectionSO.AddCustomLevel(a as CustomLevel); } } _beatmapLevelCollection = beatmapLevelCollectionSO; }
private void Init(CustomLevelCollectionSO beatmapLevelCollectionSO, bool WipPack = false) { _isPackAlwaysOwned = true; if (!WipPack) { _packID = "CustomMaps"; _packName = "Custom Maps"; _coverImage = Utils.LoadSpriteFromResources("SongLoaderPlugin.Icons.CustomSongs.png"); } else { _packID = "WIPMaps"; _packName = "WIP Maps"; _coverImage = Utils.LoadSpriteFromResources("SongLoaderPlugin.Icons.squek.png"); } _beatmapLevelCollection = beatmapLevelCollectionSO; }
public void ReplaceLevels(CustomLevelCollectionSO customLevelCollection) { _beatmapLevelCollection = customLevelCollection; }