phaser/TS Source/particles/initialize/Mass.ts
2013-08-28 07:02:57 +01:00

21 lines
399 B
TypeScript

/// <reference path="../../_definitions.ts" />
module Phaser.Particles.Initializers {
export class Mass extends Initialize {
constructor(a,b,c) {
super();
this.massPan = ParticleUtils.setSpanValue(a, b, c);
}
massPan: Phaser.Particles.Span;
initialize(target) {
target.mass = this.massPan.getValue();
}
}
}