Inventory sprite rotation (#22201)

This commit is contained in:
Nemanja
2023-12-06 19:59:16 -05:00
committed by GitHub
parent 629fa48b67
commit c047f19fdc
8 changed files with 66 additions and 11 deletions

View File

@@ -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]