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