arx-tools / arx-level-generator

A node.js library for creating maps for the video game Arx Fatalis
MIT License
6 stars 0 forks source link

Simplify Variable constructor when aiming to start a variable as uninitialized #36

Open meszaros-lajos-gyorgy opened 4 weeks ago

meszaros-lajos-gyorgy commented 4 weeks ago
import { Variable } from 'arx-level-generator/scripting/properties'

const scale = new Variable('float', 'scale', 0, true)

The above code could be simplified as:

import { Variable } from 'arx-level-generator/scripting/properties'

const scale = new Variable('float', 'scale', undefined)