Inventory sprite rotation (#22201)
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Shared.Hands.Components;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Item;
|
||||
|
||||
@@ -41,6 +42,18 @@ public sealed partial class ItemComponent : Component
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public List<Box2i>? Shape;
|
||||
|
||||
/// <summary>
|
||||
/// A sprite used to depict this entity specifically when it is displayed in the storage UI.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public SpriteSpecifier? StoredSprite;
|
||||
|
||||
/// <summary>
|
||||
/// An additional angle offset, in degrees, applied to the visual depiction of the item when displayed in the storage UI.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float StoredRotation = 0;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user