Remove Entity<T> data-fields (#34083)
This commit is contained in:
@@ -97,6 +97,6 @@ public sealed partial class ReagentProducerAnomalyComponent : Component
|
||||
/// <summary>
|
||||
/// Solution where the substance is generated
|
||||
/// </summary>
|
||||
[DataField("solutionRef")]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public sealed partial class GasCondenserComponent : Component
|
||||
/// <summary>
|
||||
/// The solution that gases are condensed into.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -157,22 +157,22 @@ namespace Content.Server.Body.Components
|
||||
/// <summary>
|
||||
/// Internal solution for blood storage
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Entity<SolutionComponent>? BloodSolution = null;
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? BloodSolution;
|
||||
|
||||
/// <summary>
|
||||
/// Internal solution for reagent storage
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Entity<SolutionComponent>? ChemicalSolution = null;
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? ChemicalSolution;
|
||||
|
||||
/// <summary>
|
||||
/// Temporary blood solution.
|
||||
/// When blood is lost, it goes to this solution, and when this
|
||||
/// solution hits a certain cap, the blood is actually spilled as a puddle.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Entity<SolutionComponent>? TemporarySolution = null;
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? TemporarySolution;
|
||||
|
||||
/// <summary>
|
||||
/// Variable that stores the amount of status time added by having a low blood level.
|
||||
|
||||
@@ -26,7 +26,7 @@ public sealed partial class LungComponent : Component
|
||||
/// <summary>
|
||||
/// The solution on this entity that these lungs act on.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -25,8 +25,8 @@ namespace Content.Server.Body.Components
|
||||
/// <summary>
|
||||
/// The solution inside of this stomach this transfers reagents to the body.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution;
|
||||
|
||||
/// <summary>
|
||||
/// What solution should this stomach push reagents into, on the body?
|
||||
|
||||
@@ -96,6 +96,6 @@ public sealed partial class PlantHolderComponent : Component
|
||||
[DataField]
|
||||
public string SoilSolutionName = "soil";
|
||||
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? SoilSolution = null;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ public sealed partial class SolutionRegenerationComponent : Component
|
||||
/// <summary>
|
||||
/// The solution to add reagents to.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? SolutionRef = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -29,7 +29,7 @@ public sealed partial class ChemicalFuelGeneratorAdapterComponent : Component
|
||||
/// <summary>
|
||||
/// The solution on the <see cref="SolutionContainerManagerComponent"/> to use.
|
||||
/// </summary>
|
||||
[DataField("solutionRef")]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -28,7 +28,7 @@ public sealed partial class UdderComponent : Component
|
||||
/// <summary>
|
||||
/// The solution to add reagent to.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadOnly)]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -28,7 +28,7 @@ public sealed partial class WoolyComponent : Component
|
||||
/// <summary>
|
||||
/// The solution to add reagent to.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadOnly)]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public Entity<SolutionComponent>? Solution;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ public sealed partial class SmokeComponent : Component
|
||||
/// <summary>
|
||||
/// The solution on the entity with touch and ingestion reactions.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -33,7 +33,7 @@ public sealed partial class SolutionContainerMixerComponent : Component
|
||||
[DataField, AutoNetworkedField]
|
||||
public SoundSpecifier? MixingSound;
|
||||
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<AudioComponent>? MixingSoundEntity;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ public sealed partial class DrainComponent : Component
|
||||
[ValidatePrototypeId<TagPrototype>]
|
||||
public const string PlungerTag = "Plunger";
|
||||
|
||||
[DataField]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution = null;
|
||||
|
||||
[DataField]
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Content.Shared.Fluids.Components
|
||||
|
||||
[DataField("solution")] public string SolutionName = "puddle";
|
||||
|
||||
[DataField("solutionRef")]
|
||||
[ViewVariables]
|
||||
public Entity<SolutionComponent>? Solution;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,9 +45,9 @@ public sealed partial class MindComponent : Component
|
||||
/// The first entity that this mind controlled. Used for round end information.
|
||||
/// Might be relevant if the player has ghosted since.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public NetEntity? OriginalOwnedEntity;
|
||||
// This is a net entity, because this field currently ddoes not get set to null when this entity is deleted.
|
||||
[AutoNetworkedField]
|
||||
public NetEntity? OriginalOwnedEntity; // TODO WeakEntityReference make this a Datafield again
|
||||
// This is a net entity, because this field currently does not get set to null when this entity is deleted.
|
||||
// This is a lazy way to ensure that people check that the entity still exists.
|
||||
// TODO MIND Fix this properly by adding an OriginalMindContainerComponent or something like that.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user