makes prototypeinheritance opt in

This commit is contained in:
Paul
2021-03-05 11:13:00 +01:00
parent 14f2deb47f
commit 73cef00aeb
38 changed files with 7 additions and 156 deletions

View File

@@ -20,10 +20,6 @@ namespace Content.Shared.GameObjects.Components.Body.Preset
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[DataField("partIDs")]
private Dictionary<string, string> _partIDs = new();

View File

@@ -32,10 +32,6 @@ namespace Content.Shared.GameObjects.Components.Body.Template
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[ViewVariables]
[field: DataField("name")]
public string Name { get; } = string.Empty;

View File

@@ -24,10 +24,6 @@ namespace Content.Shared.GameObjects.Components.Chemistry.ReagentDispenser
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
public List<string> Inventory => _inventory;
}
}

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
@@ -81,10 +81,6 @@ namespace Content.Shared.GameObjects.Components
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[field: DataField("spritePath")] public string SpritePath { get; } = string.Empty;
[field: DataField("decals")] public List<string> Decals { get; } = new();

View File

@@ -14,10 +14,6 @@ namespace Content.Shared.GameObjects.Components.Weapons.Melee
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[ViewVariables]
[field: DataField("state")]
public string State { get; } = string.Empty;