component.warheadcomponent - ICE 0.1 API documentation

ICE 0.1 API documentation

# component.warheadcomponent

Allows an entity to damage other entities at collision.

struct WarheadComponent;

  Allows an entity to damage other entities at collision.

  int damage;

    Damage caused (negative for a healing effect).

  bool killsEntity;

    Does this warhead kill its entity when activated?

  this(ref Node yaml);

    Load from a YAML node. Throws YAMLException on error.

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