Make grinder use item slots (& misc eject-button changes) (#7197)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
using Content.Shared.Access.Components;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.PDA
|
||||
{
|
||||
[RegisterComponent]
|
||||
public sealed class PDAComponent : Component
|
||||
{
|
||||
public const string PDAIdSlotId = "PDA-id";
|
||||
public const string PDAPenSlotId = "PDA-pen";
|
||||
|
||||
[DataField("idSlot")]
|
||||
public ItemSlot IdSlot = new();
|
||||
|
||||
|
||||
@@ -13,23 +13,6 @@ namespace Content.Shared.PDA
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDAEjectIDMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public PDAEjectIDMessage()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDAEjectPenMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public PDAEjectPenMessage()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class PDAShowRingtoneMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
|
||||
@@ -26,8 +26,8 @@ namespace Content.Shared.PDA
|
||||
if (pda.IdCard != null)
|
||||
pda.IdSlot.StartingItem = pda.IdCard;
|
||||
|
||||
ItemSlotsSystem.AddItemSlot(uid, $"{pda.Name}-id", pda.IdSlot);
|
||||
ItemSlotsSystem.AddItemSlot(uid, $"{pda.Name}-pen", pda.PenSlot);
|
||||
ItemSlotsSystem.AddItemSlot(uid, PDAComponent.PDAIdSlotId, pda.IdSlot);
|
||||
ItemSlotsSystem.AddItemSlot(uid, PDAComponent.PDAPenSlotId, pda.PenSlot);
|
||||
|
||||
UpdatePDAAppearance(pda);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user