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

@@ -16,10 +16,6 @@ namespace Content.Server.AI.Utility
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
/// <summary>
/// Actions that this BehaviorSet grants to the entity.
/// </summary>

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using Content.Server.Interfaces;
@@ -30,10 +30,6 @@ namespace Content.Server.Atmos.Reactions
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
/// <summary>
/// Minimum gas amount requirements.
/// </summary>

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
@@ -79,10 +79,6 @@ namespace Content.Server.Botany
[field: DataField("id", required: true)]
public string ID { get; private init; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
/// <summary>
/// Unique identifier of this seed. Do NOT set this.
/// </summary>

View File

@@ -15,10 +15,6 @@ namespace Content.Server.GameObjects.Components.AI
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[DataField("hostile")]
public IReadOnlyList<string> Hostile { get; private set; } = new List<string>();
}

View File

@@ -16,9 +16,6 @@ namespace Content.Server.GameObjects.Components.BarSign
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[DataField("icon")] public string Icon { get; private set; } = "";

View File

@@ -19,10 +19,6 @@ namespace Content.Server.Holiday
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[ViewVariables]
[DataField("beginDay")]
public byte BeginDay { get; set; } = 1;

View File

@@ -16,10 +16,6 @@ namespace Content.Server.Objectives
[field: DataField("id", required: true)]
public string ID { get; } = default!;
[ViewVariables]
[field: DataField("parent")]
public string? Parent { get; }
[ViewVariables] [DataField("issuer")] public string Issuer { get; private set; } = "Unknown";
[ViewVariables] [DataField("prob")] public float Probability { get; private set; } = 0.3f;