abstract prototype id validation (#7519)
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Content.Shared.Chemistry.Reagent
|
|||||||
[DataField("group")]
|
[DataField("group")]
|
||||||
public string Group { get; } = "Unknown";
|
public string Group { get; } = "Unknown";
|
||||||
|
|
||||||
[ParentDataFieldAttribute(typeof(PrototypeIdSerializer<ReagentPrototype>))]
|
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdSerializer<ReagentPrototype>))]
|
||||||
public string? Parent { get; private set; }
|
public string? Parent { get; private set; }
|
||||||
|
|
||||||
[NeverPushInheritance]
|
[NeverPushInheritance]
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Content.Shared.Disease
|
|||||||
[DataField("name")]
|
[DataField("name")]
|
||||||
public string Name { get; } = string.Empty;
|
public string Name { get; } = string.Empty;
|
||||||
|
|
||||||
[ParentDataFieldAttribute(typeof(PrototypeIdSerializer<DiseasePrototype>))]
|
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdSerializer<DiseasePrototype>))]
|
||||||
public string? Parent { get; private set; }
|
public string? Parent { get; private set; }
|
||||||
|
|
||||||
[NeverPushInheritance]
|
[NeverPushInheritance]
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Content.Shared.Maps
|
|||||||
[Prototype("tile")]
|
[Prototype("tile")]
|
||||||
public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition
|
public sealed class ContentTileDefinition : IPrototype, IInheritingPrototype, ITileDefinition
|
||||||
{
|
{
|
||||||
[ParentDataFieldAttribute(typeof(PrototypeIdSerializer<ContentTileDefinition>))]
|
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdSerializer<ContentTileDefinition>))]
|
||||||
public string? Parent { get; private set; }
|
public string? Parent { get; private set; }
|
||||||
|
|
||||||
[NeverPushInheritance]
|
[NeverPushInheritance]
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Content.Shared.Materials
|
|||||||
public sealed class MaterialPrototype : IPrototype, IInheritingPrototype
|
public sealed class MaterialPrototype : IPrototype, IInheritingPrototype
|
||||||
{
|
{
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[ParentDataField(typeof(PrototypeIdSerializer<MaterialPrototype>))]
|
[ParentDataField(typeof(AbstractPrototypeIdSerializer<MaterialPrototype>))]
|
||||||
public string? Parent { get; } = null;
|
public string? Parent { get; } = null;
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
|
|||||||
@@ -348,7 +348,6 @@
|
|||||||
id: GasCanisterBrokenBase
|
id: GasCanisterBrokenBase
|
||||||
name: broken gas canister
|
name: broken gas canister
|
||||||
description: A broken gas canister. Not useless yet, as it can be salvaged for high quality materials.
|
description: A broken gas canister. Not useless yet, as it can be salvaged for high quality materials.
|
||||||
abstract: true
|
|
||||||
components:
|
components:
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
thresholds:
|
thresholds:
|
||||||
|
|||||||
Reference in New Issue
Block a user