23 lines
536 B
C#
23 lines
536 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Throwing
|
|
{
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed class ThrownItemComponent : Component
|
|
{
|
|
public EntityUid? Thrower { get; set; }
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class ThrownItemComponentState : ComponentState
|
|
{
|
|
public EntityUid? Thrower { get; }
|
|
|
|
public ThrownItemComponentState(EntityUid? thrower)
|
|
{
|
|
Thrower = thrower;
|
|
}
|
|
}
|
|
}
|