Add Frame0 method for entity prototypes (#4142)

This commit is contained in:
metalgearsloth
2023-06-15 20:29:51 +10:00
committed by GitHub
parent e11cef3335
commit 2bcb457786
@@ -15,6 +15,11 @@ public sealed partial class SpriteSystem
{
private readonly Dictionary<string, IRsiStateLike> _cachedPrototypeIcons = new();
public Texture Frame0(EntityPrototype prototype)
{
return GetPrototypeIcon(prototype).Default;
}
public Texture Frame0(SpriteSpecifier specifier)
{
return RsiStateLike(specifier).Default;