Skip to content

ItemCountsAttribute

namespace Griff.Scenes;
public sealed class ItemCountsAttribute : FieldEditorAttribute

Marks a list of strings as items and how many of each, one a line: “Key 2”, or “Key” for one (an inventory’s Items). The Inspector lists them a row each, the item picked from those the game gives, with how many; the items listed count as given, for the fields that name items.

public override string FitsText { get; }
public override string Describe()
public override bool Fits(Type type)
public static ValueTuple<string, int> Read(string line)

A line read: the item and how many (see ReadOne).