Make all prototype types partial (#21374)

This commit is contained in:
DrSmugleaf
2023-11-01 19:56:23 -07:00
committed by GitHub
parent aa0c3b64ea
commit 2d58d19b07
105 changed files with 111 additions and 126 deletions

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Roles;
/// </summary>
[Prototype("antag")]
[Serializable, NetSerializable]
public sealed class AntagPrototype : IPrototype
public sealed partial class AntagPrototype : IPrototype
{
[ViewVariables]
[IdDataField]

View File

@@ -1,11 +1,10 @@
using System.Linq;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Roles;
[Prototype("department")]
public sealed class DepartmentPrototype : IPrototype
public sealed partial class DepartmentPrototype : IPrototype
{
[IdDataField] public string ID { get; } = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Shared.Roles
/// Describes information for a single job on the station.
/// </summary>
[Prototype("job")]
public sealed class JobPrototype : IPrototype
public sealed partial class JobPrototype : IPrototype
{
[ViewVariables]
[IdDataField]

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Prototypes;
namespace Content.Shared.Roles
{
[Prototype("startingGear")]
public sealed class StartingGearPrototype : IPrototype
public sealed partial class StartingGearPrototype : IPrototype
{
[DataField]
public Dictionary<string, EntProtoId> Equipment = new();