添加对 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
@@ -0,0 +1,25 @@
using RhythmBase.Events;
namespace RhythmBase.Exceptions
{
/// <summary>
/// Exception thrown when a beat is placed in an illegal position.
/// </summary>
public class IllegalBeatException(IBarBeginningEvent item) : RhythmBaseException
{
/// <summary>
/// Gets the error message that explains the reason for the exception.
/// </summary>
public override string Message
{
get
{
return string.Format("This beat is invalid, the event {0} only allows the beat to be at the beginning of the bar.", ((BaseEvent)Item).Type);
}
}
/// <summary>
/// Gets the event that caused the exception.
/// </summary>
public IBarBeginningEvent Item = item;
}
}