Skip to content

Commit

Permalink
Make remaining IPrototypes partial (#5053)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSmugleaf authored Apr 20, 2024
1 parent 19f87df commit 68888c4
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Robust.Client/Graphics/Shaders/ShaderPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Robust.Client.Graphics
{
[Prototype("shader")]
public sealed class ShaderPrototype : IPrototype, ISerializationHooks
public sealed partial class ShaderPrototype : IPrototype, ISerializationHooks
{
[ViewVariables]
[IdDataField]
Expand Down
2 changes: 1 addition & 1 deletion Robust.Client/UserInterface/RichText/FontPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Robust.Client.UserInterface.RichText;

[Prototype("font")]
public sealed class FontPrototype : IPrototype
public sealed partial class FontPrototype : IPrototype
{
[IdDataField]
public string ID { get; private set; } = default!;
Expand Down
4 changes: 1 addition & 3 deletions Robust.Client/UserInterface/Themes/UiTheme.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;
using Robust.Shared.ContentPack;
using Robust.Shared.Graphics;
using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Shared.Maths;
Expand All @@ -18,7 +16,7 @@
namespace Robust.Client.UserInterface.Themes;

[Prototype("uiTheme")]
public sealed class UITheme : IPrototype
public sealed partial class UITheme : IPrototype
{
private IResourceCache? _cache;
private IUserInterfaceManager? _uiMan;
Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Audio/AudioMetadataPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Robust.Shared.Audio;
/// to allow the server to know audio lengths without shipping the large audio files themselves.
/// </summary>
[Prototype(ProtoName)]
public sealed class AudioMetadataPrototype : IPrototype
public sealed partial class AudioMetadataPrototype : IPrototype
{
public const string ProtoName = "audioMetadata";

Expand Down
2 changes: 1 addition & 1 deletion Robust.Shared/Audio/AudioPresetPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Robust.Shared.Audio;
/// This can be used by <see cref="Content.Shared.Audio.SharedContentAudioSystem"/> to apply an audio preset.
/// </summary>
[Prototype("audioPreset")]
public sealed class AudioPresetPrototype : IPrototype
public sealed partial class AudioPresetPrototype : IPrototype
{
[IdDataField]
public string ID { get; } = default!;
Expand Down
4 changes: 2 additions & 2 deletions Robust.Shared/Audio/SoundCollectionPrototype.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Collections.Generic;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
using System.Collections.Generic;

namespace Robust.Shared.Audio;

[Prototype("soundCollection")]
public sealed class SoundCollectionPrototype : IPrototype
public sealed partial class SoundCollectionPrototype : IPrototype
{
[ViewVariables]
[IdDataField]
Expand Down
4 changes: 2 additions & 2 deletions Robust.Shared/Prototypes/EntityCategoryPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Robust.Shared.Prototypes;
/// Prototype that represents game entities.
/// </summary>
[Prototype("entityCategory")]
public sealed class EntityCategoryPrototype : IPrototype
public sealed partial class EntityCategoryPrototype : IPrototype
{
[IdDataField]
public string ID { get; private set; } = default!;
Expand All @@ -22,4 +22,4 @@ public sealed class EntityCategoryPrototype : IPrototype
/// </summary>
[DataField("description")]
public string? Description { get; private set; }
}
}
2 changes: 1 addition & 1 deletion Robust.Shared/Prototypes/TileAliasPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Robust.Shared.Prototypes;
/// Tile alias prototypes, unlike tile prototypes, are implemented here, as they're really just fed to TileDefinitionManager.
/// </summary>
[Prototype("tileAlias")]
public sealed class TileAliasPrototype : IPrototype
public sealed partial class TileAliasPrototype : IPrototype
{
/// <summary>
/// The target tile ID to alias to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ string GenerateCircleTestPrototype(string id, string parent)
}

[Prototype("circle")]
private sealed class CircleTestPrototype : IPrototype, IInheritingPrototype
private sealed partial class CircleTestPrototype : IPrototype, IInheritingPrototype
{
[IdDataField()]
public string ID { get; private set; } = default!;
Expand Down

0 comments on commit 68888c4

Please sign in to comment.