component.deathtimeoutcomponent
Component that limits the lifetime of an entity.
- struct DeathTimeoutComponent;
Component that limits the lifetime of an entity.
- double timeLeft;
Time left for the entity to live, in (game time) seconds.
- this(ref Node yaml);
Load from a YAML node. Throws YAMLException on error.
- pure nothrow this(const(double) timeLeft);
Construct manually.