Files
tbd-station-14/Content.Shared/Throwing/ThrownItemComponent.cs
Vera Aguilera Puerto 95c78020f6 Fix ThrownItemComponent's Thrower not being synced with the client.
- Fixes throwing banana peels making people become horizontal... On the client only.
2021-10-12 21:58:11 +02:00

27 lines
621 B
C#

using System;
using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Throwing
{
[RegisterComponent, NetworkedComponent]
public class ThrownItemComponent : Component
{
public override string Name => "ThrownItem";
public IEntity? Thrower { get; set; }
}
[Serializable, NetSerializable]
public class ThrownItemComponentState : ComponentState
{
public EntityUid? Thrower { get; }
public ThrownItemComponentState(EntityUid? thrower)
{
Thrower = thrower;
}
}
}