mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
103bc19508
Co-authored-by: 20kdc <asdd2808@gmail.com>
24 lines
814 B
C#
24 lines
814 B
C#
#nullable enable
|
|
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.NodeContainer.NodeGroups
|
|
{
|
|
/// <summary>
|
|
/// Associates a <see cref="INodeGroup"/> implementation with a <see cref="NodeGroupID"/>.
|
|
/// This is used to gurantee all <see cref="INode"/>s of the same <see cref="INode.NodeGroupID"/>
|
|
/// have the same type of <see cref="INodeGroup"/>. Used by <see cref="INodeGroupFactory"/>.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
|
|
[MeansImplicitUse]
|
|
public class NodeGroupAttribute : Attribute
|
|
{
|
|
public NodeGroupID[] NodeGroupIDs { get; }
|
|
|
|
public NodeGroupAttribute(params NodeGroupID[] nodeGroupTypes)
|
|
{
|
|
NodeGroupIDs = nodeGroupTypes;
|
|
}
|
|
}
|
|
}
|