Allow storage to specify a default orientation for stored items. (#23594)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -94,6 +94,14 @@ namespace Content.Shared.Storage
|
||||
[DataField("storageCloseSound")]
|
||||
public SoundSpecifier? StorageCloseSound;
|
||||
|
||||
/// <summary>
|
||||
/// If not null, ensures that all inserted items are of the same orientation
|
||||
/// Horizontal - items are stored laying down
|
||||
/// Vertical - items are stored standing up
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public StorageDefaultOrientation? DefaultStorageOrientation;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StorageUiKey
|
||||
{
|
||||
@@ -204,4 +212,11 @@ namespace Content.Shared.Storage
|
||||
StorageUsed,
|
||||
Capacity
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StorageDefaultOrientation : byte
|
||||
{
|
||||
Horizontal,
|
||||
Vertical
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user