FocusAttribute
namespace Griff.Scenes;
public sealed class FocusAttribute : AttributeMarks a component’s true-or-false property as whether it takes the player’s input: a movement’s Controllable, a board’s, the strategy commander’s, the tactics controls’. Without it the component ignores the keys, the mouse and the gamepad, while the rest of it runs on. A component with one has a Focus action (see ActionAttribute): done by a Trigger, a wire or a script (Game.Focus), it turns the property on for its entity (and whatever is inside it) and off for everything else the same player plays, so a match-3 minigame and a platformer in one scene don’t both move on the arrow keys. Found by this attribute, so a script component’s own property counts too.