Revert "Solution Entities" (#23160)
Revert "Solution Entities (#21916)"
This reverts commit d75e743dd7.
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
using Content.Shared.Chemistry.EntitySystems;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Chemistry.Components.SolutionManager;
|
||||
|
||||
/// <summary>
|
||||
/// Component used to relate a solution to its container.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// When containers are finally ECS'd have this attach to the container entity.
|
||||
/// The <see cref="Solution.MaxVolume"/> field should then be extracted out into this component.
|
||||
/// Solution entities would just become an apporpriately composed entity hanging out in the container.
|
||||
/// Will probably require entities in components being given a relation to associate themselves with their container.
|
||||
/// </remarks>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
[Access(typeof(SharedSolutionContainerSystem))]
|
||||
public sealed partial class ContainedSolutionComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The entity that the solution is contained in.
|
||||
/// </summary>
|
||||
[DataField(required: true), AutoNetworkedField]
|
||||
public EntityUid Container;
|
||||
|
||||
/// <summary>
|
||||
/// The name/key of the container the solution is located in.
|
||||
/// </summary>
|
||||
[DataField(required: true), AutoNetworkedField]
|
||||
public string ContainerName = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user