component.controllercomponent
Comoponent that makes an entity controllable, as if through user input.
- struct ControllerComponent;
Component that makes an entity controllable, as if through user input.
Logically emulates a controller with buttons used to control a ship.
- Bits!(256) firing;
Booleans specifying which weapons are currently being fired.
- bool die;
Should the entity kill itself?
- this(ref Node yaml);
Load from a YAML node.
Right now YAML can only specify existence of a ControllerComponent, not load anything from it.
- pure nothrow @property void movementDirection(Vector2f rhs);
Set the movement direction. Length of the vector must be <= 1.0 .
- const pure nothrow @property Vector2f movementDirection();
Get the movement direction.