mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Serialization docs Co-authored-by: Moony <moonheart08@users.noreply.github.com> * ECS docs Co-authored-by: Moony <moonheart08@users.noreply.github.com> * scattered docs Co-authored-by: Moony <moonheart08@users.noreply.github.com> * Fixes --------- Co-authored-by: Moony <moonheart08@users.noreply.github.com> Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Robust.Shared.GameObjects;
|
|
|
|
/// <summary>
|
|
/// Marks a component as being automatically registered by <see cref="IComponentFactory.DoAutoRegistrations" />
|
|
/// </summary>
|
|
/// <seealso cref="Component"/>
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
[BaseTypeRequired(typeof(IComponent))]
|
|
[MeansImplicitUse]
|
|
public sealed class RegisterComponentAttribute : Attribute;
|
|
|
|
/// <summary>
|
|
/// Defines Name that this component is represented with in prototypes.
|
|
/// </summary>
|
|
/// <seealso cref="Component"/>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class ComponentProtoNameAttribute(string prototypeName) : Attribute
|
|
{
|
|
public string PrototypeName { get; } = prototypeName;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Marks a component as not being saved when saving maps/grids. This is useful for purely runtime information.
|
|
/// </summary>
|
|
/// <seealso cref="ComponentRegistration.Unsaved"/>
|
|
/// <seealso cref="Component"/>
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
public sealed class UnsavedComponentAttribute : Attribute;
|