调整结构

This commit is contained in:
ww-rm
2025-03-12 19:14:22 +08:00
parent 763a49a4d3
commit c0b85c454e
8 changed files with 16 additions and 17 deletions

View File

@@ -17,8 +17,6 @@ using System.Globalization;
namespace SpineViewer.Spine
{
/// <summary>
/// Spine 实现类标记
/// </summary>
@@ -70,6 +68,8 @@ namespace SpineViewer.Spine
var attr = type.GetCustomAttribute<SpineImplementationAttribute>();
if (attr is not null)
{
if (ImplementationTypes.ContainsKey(attr.Version))
throw new InvalidOperationException($"Multiple implementations found: {attr.Version}");
ImplementationTypes[attr.Version] = type;
}
}