Files
RobustToolbox/Robust.Shared/ContentPack/ContentAccessAllowedAttribute.cs
Moony 538535db9a Engine default stylesheet + debug connect screen (#4017)
* Debug connection screen

* [ContentAccessAllowed] so I can use IStateManager on engine types.

* Implement a default engine stylesheet.

* awa

* Fix an issue that can cause hangs when resolving a color.

---------

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2023-05-11 06:38:50 -05:00

18 lines
608 B
C#

using System;
using Robust.Shared.IoC;
namespace Robust.Shared.ContentPack;
// Yes this attribute is a crappy workaround because I cba to automatically infer this
// based on constructors or something. I'm lazy and want to code editor dockers, deal with it.
/// <summary>
/// Mark this type as content safe, which means <see cref="ModLoaderExt.IsContentTypeAccessAllowed"/> will pass for it.
/// This means it can be spawned dynamically with <see cref="IDynamicTypeFactory"/>.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
internal sealed class ContentAccessAllowedAttribute : Attribute
{
}