FocusFromAttribute
namespace Griff.Scenes;
public sealed class FocusFromAttribute : AttributeMarks a component that reads the player’s input but has no focus of its own (see FocusAttribute): it takes the input only while the Type it goes with has focus, so the Focus action given to that hands it over too. A first-person weapon fires while its player’s movement has the input, a puzzle’s move history hears Undo while a grid player it covers has it, and crafting opens while its builder has it. Every genre’s components that read input have one or the other, which Griff’s own tests hold them to.
Properties
Section titled “Properties”public Type Type { get; }The component whose focus it goes by, e.g. a first-person movement’s for a weapon.