コード例 #1
0
        private void Init(CustomLevelCollectionSO beatmapLevelCollectionSO)
        {
            _isPackAlwaysOwned = true;
            _packID            = "CustomMaps";
            _packName          = "Custom Maps";
            _coverImage        = Utils.LoadSpriteFromResources("SongLoaderPlugin.Icons.CustomSongs.png");


            _beatmapLevelCollection = beatmapLevelCollectionSO;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 public void ReplaceLevels(CustomLevelCollectionSO customLevelCollection)
 {
     _beatmapLevelCollection = customLevelCollection;
 }