Files
wwdpublic/Content.Shared/Containers/ContainerCompComponent.cs
metalgearsloth ec517b152f Add ContainerComp (#31311)
Applies EntProtoId changes upon insertion / removal from container. Can also be useful for borgs / mechs / vehicles in future but atm I just used it for AI.

(cherry picked from commit 006acf3a376c5fdb163297b758ef86fd7d7638ef)
2025-01-14 02:02:45 +03:00

18 lines
483 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Containers;
/// <summary>
/// Applies container changes whenever an entity is inserted into the specified container on this entity.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class ContainerCompComponent : Component
{
[DataField(required: true)]
public EntProtoId Proto;
[DataField(required: true)]
public string Container = string.Empty;
}