PrefabCountsAttribute
namespace Griff.Scenes;
public sealed class PrefabCountsAttribute : FieldEditorAttributeMarks a list of strings as prefabs and how many of each, a line each: “Enemy 4”, “Potion 1-2” (a number picked between them) or “Gold” (one). The Inspector lists them a row each, the prefab picked from the project’s and how many set.
Properties
Section titled “Properties”FitsText
Section titled “FitsText”public override string FitsText { get; }Methods
Section titled “Methods”Describe
Section titled “Describe”public override string Describe()public override bool Fits(Type type)public static ValueTuple<string, int, int> Read(string line)A line read: the prefab and the fewest and most of it.