ItemIcon
namespace Griff.Modules.Adventures;
public struct ItemIconAn item’s picture on an InventoryBar: an image in Assets, the part of it to show, and its width over its height.
Properties
Section titled “Properties”Aspect
Section titled “Aspect”public float Aspect { get; init; }public string Image { get; init; }Source
Section titled “Source”public Vector4 Source { get; init; }Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string Image, out Vector4 Source, out float Aspect)Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(ItemIcon other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()public static ItemIcon? Parse(string? text)Reads “Sprites/key.png”, or a frame of a sprite sheet, “Sprites/items.png 4x2 5” (4 across, 2 down, frame 5); null for nothing.
ToString
Section titled “ToString”public override string ToString()