예제 #1
0
        public override string ToString(FormatType format, object supplement = null)
        {
            switch (format)
            {
            case FormatType.Brief:
                return($"{SongId}.{SongTitle} [{ChartRatingClass} {ChartRating}({ChartConstant})]");

            case FormatType.Detail:
                //获取所有歌曲别名
                string allAnotherName = "";
                foreach (var item in PluginArcaeaSong2anothername.Where(x => x.SongId == SongId))
                {
                    allAnotherName += item.AnotherName.AnotherName + ",";
                }
                allAnotherName = allAnotherName.TrimEnd(',');
                if (allAnotherName.IsNullOrWhiteSpace())
                {
                    allAnotherName = null;
                }
                return($"{SongId}.{SongTitle} [{ChartRatingClass} {ChartConstant}]\n" +
                       allAnotherName?.Be($"别名:{allAnotherName}\n") +
                       SongArtist?.Be($"曲师:{SongArtist}\n") +
                       JacketDesigner?.Be($"画师:{JacketDesigner}\n") +
                       SongBpm?.Be($"BPM:{SongBpm}\n") +
                       SongLength?.Be($"歌曲长度:{SongLength}\n") +
                       SongPack?.Be($"曲包:{SongPack}\n") +
                       ChartDesigner?.Be($"谱师:{ChartDesigner}\n") +
                       ChartAllNotes?.Be($"note总数:{ChartAllNotes}\n地键:{ChartFloorNotes}\n天键:{ChartSkyNotes}\n蛇:{ChartArcNotes}\n长条:{ChartHoldNotes}"));
            }
            return(null);
        }
예제 #2
0
 public override string ToString(FormatType formatType, object supplement = null)
 {
     return($"[{ChartRatingClass} {ChartConstant}]" + ChartDesigner?.Be($"谱师:{ChartDesigner}\n") +
            ChartAllNotes?.Be(
                $"note总数:{ChartAllNotes}\n地键:{ChartFloorNotes}\n天键:{ChartSkyNotes}\n蛇:{ChartArcNotes}\n长条:{ChartHoldNotes}"));
 }