Files
tbd-station-14/Content.Shared/Throwing/ThrownItemComponent.cs
2023-09-11 09:42:41 +10:00

24 lines
610 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Throwing
{
[RegisterComponent, NetworkedComponent]
public sealed partial class ThrownItemComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("thrower")]
public EntityUid? Thrower { get; set; }
}
[Serializable, NetSerializable]
public sealed class ThrownItemComponentState : ComponentState
{
public NetEntity? Thrower { get; }
public ThrownItemComponentState(NetEntity? thrower)
{
Thrower = thrower;
}
}
}