Mark component name as obsolete (#2791)

This commit is contained in:
metalgearsloth
2022-05-05 18:42:38 +10:00
committed by GitHub
parent 4307509402
commit 2d6e699e2c

View File

@@ -18,6 +18,7 @@ namespace Robust.Shared.GameObjects
{
/// <inheritdoc />
[ViewVariables(VVAccess.ReadOnly)]
[Obsolete("Resolve IComponentFactory and call GetComponentName instead")]
public virtual string Name => IoCManager.Resolve<IComponentFactory>().GetComponentName(GetType());
/// <inheritdoc />