@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.NodeContainer.Nodes
|
||||
{
|
||||
/// <summary>
|
||||
/// Associates a <see cref="Node"/> implementation with a string. This is used
|
||||
/// to specify an <see cref="Node"/>'s strategy in yaml. Used by <see cref="INodeFactory"/>.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
|
||||
public class
|
||||
NodeAttribute : Attribute
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public NodeAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user