arx-level-generator
Version:
A tool for creating Arx Fatalis maps
40 lines • 980 B
JavaScript
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for setting the material of an Entity
*
* @extends ScriptProperty
* @see https://wiki.arx-libertatis.org/Script:setmaterial
*/
export class Material extends ScriptProperty {
toString() {
return `set_material ${this.value}`;
}
static get stone() {
return new Material('stone');
}
static get wood() {
return new Material('wood');
}
static get metal() {
return new Material('metal');
}
static get cloth() {
return new Material('cloth');
}
static get flesh() {
return new Material('flesh');
}
static get ice() {
return new Material('ice');
}
static get glass() {
return new Material('glass');
}
static get earth() {
return new Material('earth');
}
static get weapon() {
return new Material('weapon');
}
}
//# sourceMappingURL=Material.js.map