mirror of
https://github.com/XWine1/XDLCompiler.git
synced 2026-07-24 12:32:21 -07:00
11 lines
370 B
C#
11 lines
370 B
C#
namespace XDLCompiler;
|
|
|
|
public sealed class UuidAttribute(AttributeNode node) : IAttributeFactory<UuidAttribute>
|
|
{
|
|
public Guid Guid { get; } = Guid.Parse((string)node.Arguments[0].Evaluate());
|
|
|
|
static string IAttributeFactory<UuidAttribute>.Name => "uuid";
|
|
|
|
static UuidAttribute IAttributeFactory<UuidAttribute>.Create(AttributeNode node) => new(node);
|
|
}
|