From 2bcb457786a60d3dafcbacd30d910db9cec11efa Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 15 Jun 2023 20:29:51 +1000 Subject: [PATCH] Add Frame0 method for entity prototypes (#4142) --- .../GameObjects/EntitySystems/SpriteSystem.Specifier.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Robust.Client/GameObjects/EntitySystems/SpriteSystem.Specifier.cs b/Robust.Client/GameObjects/EntitySystems/SpriteSystem.Specifier.cs index 8451eb9c83..e610b52d41 100644 --- a/Robust.Client/GameObjects/EntitySystems/SpriteSystem.Specifier.cs +++ b/Robust.Client/GameObjects/EntitySystems/SpriteSystem.Specifier.cs @@ -15,6 +15,11 @@ public sealed partial class SpriteSystem { private readonly Dictionary _cachedPrototypeIcons = new(); + public Texture Frame0(EntityPrototype prototype) + { + return GetPrototypeIcon(prototype).Default; + } + public Texture Frame0(SpriteSpecifier specifier) { return RsiStateLike(specifier).Default;