Files
wwdpublic/Content.Client/_White/ItemSlotRenderer/ItemSlotRendererComponent.cs
Spatison 54086988e3 Mass clean up (#587)
* mass clean up

(cherry picked from commit 12bb873b02c1ef50e20763542b030452cc0613da)

* Revert "Centrifuge buff (#393)"

This reverts commit 2a59a18230.

(cherry picked from commit 9ee495ab4bb365e1ccd3dc627ecb55114fea6944)

* Shoving merge conflict

* fix rich traitor

* fix test

* yml

* fix test

* fix test

* ohh
2025-06-16 20:35:48 +03:00

30 lines
827 B
C#

using Robust.Client.Graphics;
namespace Content.Client._White.ItemSlotRenderer;
[RegisterComponent]
public sealed partial class ItemSlotRendererComponent : Component
{
// [slotId] = layer mapping (in string form)
[DataField("mapping")]
public Dictionary<string, string> PrototypeLayerMappings = new();
// [mapkey] = slotId
[ViewVariables]
public List<(object, string)> LayerMappings = new();
// [slotId] = entity uid
[ViewVariables(VVAccess.ReadOnly)]
public Dictionary<string, EntityUid?> CachedEntities = new();
// [slotId] = IRenderTexture
[ViewVariables(VVAccess.ReadOnly)]
public Dictionary<string, IRenderTexture> CachedRT = new();
[DataField]
public bool ErrorOnMissing = true;
[DataField]
public Vector2i RenderTargetSize = new Vector2i(32, 32);
}