Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meszaros-lajos-gyorgy opened this issue Oct 26, 2024 · 0 comments
Milestone

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

meszaros-lajos-gyorgy commented Oct 26, 2024

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)
@meszaros-lajos-gyorgy meszaros-lajos-gyorgy added this to the v23.0.0 milestone Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant