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

Suggestion: add new Array type: RefMap. #221

Open
ir4ne opened this issue Sep 14, 2023 · 0 comments
Open

Suggestion: add new Array type: RefMap. #221

ir4ne opened this issue Sep 14, 2023 · 0 comments

Comments

@ir4ne
Copy link
Contributor

ir4ne commented Sep 14, 2023

It's often very convenient to store some info about certain game objects. It's also good, if you can get that info in amortized O(1). As a workaround, it's possible to use StringMap with GetRawFormIDString refVar as keys. However, that would also require to update all such arrays on game load, as the keys may become invalid if load order changes (the FormID of references will change). That's why it would be very useful to have a Map with keys of Ref type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants