component.playercomponent
Gives an entity an owner player that can control it.
- struct PlayerComponent;
Gives an entity an owner player that can control it.
- Player player;
Player owning the entity. null until the PlayerSystem sets it.
- uint playerIndex;
Index of the player owning the entity. Used by PlayerSystem to set the player.
- this(ref Node yaml);
Load from a YAML node.