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

Globally unique item ids #211

Open
bensku opened this issue May 30, 2021 · 1 comment
Open

Globally unique item ids #211

bensku opened this issue May 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bensku
Copy link
Contributor

bensku commented May 30, 2021

Compute globally unique (per runtime, not forever) ids from ordinals of materials and model ids. This allows creating efficient O(1) lookup tables with ES6 maps.

@bensku bensku added the enhancement New feature or request label May 30, 2021
@Laetta
Copy link
Contributor

Laetta commented May 30, 2021

One kinda simple solution to this would be to compute the key as material + customModelData. This should be unique for every possible (custom)item?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants