mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
34 lines
873 B
C#
34 lines
873 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Content.Shared.Alert;
|
|
|
|
namespace Content.Shared.OfferItem;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
[Access(typeof(SharedOfferItemSystem))]
|
|
public sealed partial class OfferItemComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
|
public bool IsInOfferMode;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool IsInReceiveMode;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public string? Hand;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? Item;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? Target;
|
|
|
|
[DataField]
|
|
public float MaxOfferDistance = 2f;
|
|
|
|
[DataField]
|
|
public ProtoId<AlertPrototype> OfferAlert = "Offer";
|
|
}
|
|
|
|
public sealed partial class AcceptOfferAlertEvent : BaseAlertEvent;
|