component.playercomponent - ICE 0.1 API documentation

ICE 0.1 API documentation

# 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.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.