Serv3 rework content changes (#7145)

This commit is contained in:
Paul Ritter
2022-04-03 02:01:22 +02:00
committed by GitHub
parent 6b01ab17a6
commit 2ff40d5a1f
133 changed files with 476 additions and 324 deletions

View File

@@ -21,7 +21,7 @@ namespace Content.Shared.Damage.Prototypes
public sealed class DamageContainerPrototype : IPrototype
{
[ViewVariables]
[DataField("id", required: true)]
[IdDataFieldAttribute]
public string ID { get; } = default!;
/// <summary>

View File

@@ -18,7 +18,7 @@ namespace Content.Shared.Damage.Prototypes
[Serializable, NetSerializable]
public sealed class DamageGroupPrototype : IPrototype
{
[DataField("id", required: true)] public string ID { get; } = default!;
[IdDataFieldAttribute] public string ID { get; } = default!;
[DataField("damageTypes", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<DamageTypePrototype>))]
public List<string> DamageTypes { get; } = default!;

View File

@@ -19,7 +19,7 @@ namespace Content.Shared.Damage.Prototypes
public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
{
[ViewVariables]
[DataField("id", required: true)]
[IdDataFieldAttribute]
public string ID { get; } = default!;
}
}

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.Damage.Prototypes
[Serializable, NetSerializable]
public sealed class DamageTypePrototype : IPrototype
{
[DataField("id", required: true)]
[IdDataFieldAttribute]
public string ID { get; } = default!;
}
}

View File

@@ -9,7 +9,7 @@ namespace Content.Shared.Damage.Prototypes;
[Prototype("examinableDamage")]
public sealed class ExaminableDamagePrototype : IPrototype
{
[DataField("id", required: true)]
[IdDataFieldAttribute]
public string ID { get; } = default!;
/// <summary>