arx-level-generator
Version:
A tool for creating Arx Fatalis maps
19 lines • 556 B
JavaScript
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for specifying whether an Entity can be collided with or can be passed through.
*
* @extends ScriptProperty
* @see https://wiki.arx-libertatis.org/Script:collision
*/
export class Collision extends ScriptProperty {
toString() {
return `collision ${this.value === true ? 'on' : 'off'}`;
}
static get on() {
return new Collision(true);
}
static get off() {
return new Collision(false);
}
}
//# sourceMappingURL=Collision.js.map