VariableChanged

A template for entities with changes on variables.

template VariableChanged (
T : Entity
string changes
) {}

Members

Classes

VariableChanged
class VariableChanged
Undocumented in source.

Examples

// an entity on fire by default
alias OnFire(T) = Changed!(T, "this.onFire = true;");
Creeper creeper = world.spawn!(OnFire!Creeper);
assert(creeper.onFire);

// multiple changes can be used togheter
new OnFire!(Unticked!(Noai!Creeper))();

Meta