Cleanup: Remove redundant Prototype names (#5721)

* Cleanup: Remove redundant Prototype names

* Actually this one probably should stay

* Suppress warning

* Remove warning suppression on AudioMetadataPrototype

* But wait, there's more!
This commit is contained in:
Tayrtahn
2025-03-25 20:39:10 -04:00
committed by GitHub
parent ceb59402a1
commit ccc383b1bf
7 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ using Vector4 = Robust.Shared.Maths.Vector4;
namespace Robust.Client.Graphics
{
[Prototype("shader")]
[Prototype]
public sealed partial class ShaderPrototype : IPrototype, ISerializationHooks
{
[ViewVariables]

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
namespace Robust.Client.UserInterface.RichText;
[Prototype("font")]
[Prototype]
public sealed partial class FontPrototype : IPrototype
{
[IdDataField]

View File

@@ -8,7 +8,7 @@ namespace Robust.Shared.Audio;
/// Contains audio defaults to set for sounds.
/// This can be used by <see cref="Content.Shared.Audio.SharedContentAudioSystem"/> to apply an audio preset.
/// </summary>
[Prototype("audioPreset")]
[Prototype]
public sealed partial class AudioPresetPrototype : IPrototype
{
[IdDataField]

View File

@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
namespace Robust.Shared.Audio;
[Prototype("soundCollection")]
[Prototype]
public sealed partial class SoundCollectionPrototype : IPrototype
{
[ViewVariables]

View File

@@ -9,7 +9,7 @@ namespace Robust.Shared.Prototypes;
/// Prototype that represents some entity prototype category.
/// Useful for sorting or grouping entity prototypes for mapping/spawning UIs.
/// </summary>
[Prototype("entityCategory")]
[Prototype]
public sealed partial class EntityCategoryPrototype : IPrototype
{
[IdDataField] public string ID { get; private set; } = default!;

View File

@@ -21,7 +21,7 @@ namespace Robust.Shared.Prototypes
/// <summary>
/// Prototype that represents game entities.
/// </summary>
[Prototype("entity", -1)]
[Prototype(-1)]
public sealed partial class EntityPrototype : IPrototype, IInheritingPrototype, ISerializationHooks
{
private ILocalizationManager _loc = default!;

View File

@@ -6,7 +6,7 @@ namespace Robust.Shared.Prototypes;
/// <summary>
/// Prototype that represents an alias from one tile ID to another. These are used when deserializing entities from yaml.
/// </summary>
[Prototype("tileAlias")]
[Prototype]
public sealed partial class TileAliasPrototype : IPrototype
{
/// <summary>