添加对 Core 的直接引用

This commit is contained in:
OLDREDSTONE
2025-03-25 15:49:57 +08:00
parent 24907abedb
commit 06c19bf10a
296 changed files with 24961 additions and 2 deletions
+50
View File
@@ -0,0 +1,50 @@
using Newtonsoft.Json;
using RhythmBase.Converters;
using RhythmBase.Extensions;
namespace RhythmBase.Events
{
/// <inheritdoc />
public class SetRowXs : BaseBeat
{
/// <inheritdoc />
public SetRowXs() { }
/// <inheritdoc />
public override EventType Type => EventType.SetRowXs;
/// <summary>
/// Gets or sets the pattern.
/// </summary>
[JsonConverter(typeof(PatternConverter))]
public Patterns[] Pattern
{
get => _pattern;
set => _pattern = value.Length == 6 ? value : throw new RhythmBase.Exceptions.RhythmBaseException();
}
/// <summary>
/// Gets or sets the synco beat.
/// </summary>
public sbyte SyncoBeat { get; set; } = -1;
/// <summary>
/// Gets or sets the synco swing.
/// </summary>
public float SyncoSwing { get; set; } = 0;
/// <summary>
/// Gets or sets a value indicating whether to play the modifier sound.
/// </summary>
public bool SyncoPlayModifierSound { get; set; }
/// <summary>
/// Gets or sets the synco volume.
/// </summary>
public int SyncoVolume { get; set; } = 100;
/// <inheritdoc />
public override string ToString() => base.ToString() + string.Format(" {0}", this.GetPatternString());
private Patterns[] _pattern = new Patterns[6];
}
}