arx-level-generator
Version:
A tool for creating Arx Fatalis maps
20 lines • 503 B
JavaScript
import { roundToNDecimals } from '../../helpers.js';
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for specifying the size of an Entity.
*
* Value precision is only 2 decimals
*
* @extends ScriptProperty
*
* default value is 1
*/
export class Scale extends ScriptProperty {
toString() {
return `set_scale ${roundToNDecimals(2, this.value) * 100}`;
}
static get default() {
return new Scale(1);
}
}
//# sourceMappingURL=Scale.js.map