arx-level-generator
Version:
A tool for creating Arx Fatalis maps
30 lines • 850 B
JavaScript
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for enabling or disabling cinematic borders
*
* @extends ScriptProperty
* @see https://wiki.arx-libertatis.org/Script:cinemascope
*/
export class Cinemascope extends ScriptProperty {
isSliding;
constructor(value, isSliding = false) {
super(value);
this.isSliding = isSliding;
}
toString() {
return `cinemascope ${this.isSliding === true ? '-s' : ''} ${this.value === true ? 'on' : 'off'}`;
}
static get on() {
return new Cinemascope(true);
}
static get off() {
return new Cinemascope(false);
}
static get slideIn() {
return new Cinemascope(true, true);
}
static get slideOut() {
return new Cinemascope(false, true);
}
}
//# sourceMappingURL=Cinemascope.js.map