PlainTextAttribute
namespace Griff.Scenes;
public sealed class PlainTextAttribute : AttributeSays plain text is right for a property that takes text or a list of it, and why: words it shows or says, a name it gives itself that nothing else names, or what the game writes as it runs ([PlainText("words it shows")]). The Inspector keeps a plain box for it, and a list keeps its lines as one block of text (a tilemap’s rows) rather than a row each. Every other field taking text has a picker or an editor of its own: Griff’s tests fail for one with neither, and say what to mark it. A whole number named like a tile (“FirstTile”) that isn’t one says so with it too.
Properties
Section titled “Properties”public string Why { get; }Why typing it is right.
Methods
Section titled “Methods”public static bool Fits(Type type)True for the types it goes on: text, a list of strings, or a whole number named like a tile.