Toilet Upgrade (needs review) (#22133)
* Toilet Draft * fixes * toilets now have secret stash to place items in cistern. * fixes * plungers now unblock toilets. * fix sprite * new sprites and fix * fixes * improve seat sprites. * fix * removed visualisersystem changed to genericvisualizers * flush sound for toilets and copyright for toilet sprites. * fix atrributions * fixes * fix datafield flushtime * sprite improvements * fixes * multiple changes * fix * fix * fixes remove vv * moved stash related functions to secret stash system from toilet. * fix * fix * changes for recent review. * fix * fix
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
using Content.Server.Storage.EntitySystems;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Toilet;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Storage.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Logic for a secret slot stash, like plant pot or toilet cistern.
|
||||
/// Unlike <see cref="ItemSlotsComponent"/> it doesn't have interaction logic or verbs.
|
||||
/// Other classes like <see cref="ToiletComponent"/> should implement it.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(SecretStashSystem))]
|
||||
public sealed partial class SecretStashComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Max item size that can be fitted into secret stash.
|
||||
/// </summary>
|
||||
[DataField("maxItemSize")]
|
||||
public ProtoId<ItemSizePrototype> MaxItemSize = "Small";
|
||||
|
||||
/// <summary>
|
||||
/// IC secret stash name. For example "the toilet cistern".
|
||||
/// If empty string, will replace it with entity name in init.
|
||||
/// </summary>
|
||||
[DataField("secretPartName", readOnly: true)]
|
||||
public string SecretPartName { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Container used to keep secret stash item.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public ContainerSlot ItemContainer = default!;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user