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

TID: Allocate internal IDs to mobjs #780

Open
LoboEire opened this issue Dec 30, 2024 · 0 comments
Open

TID: Allocate internal IDs to mobjs #780

LoboEire opened this issue Dec 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LoboEire
Copy link
Collaborator

Allocate internal IDs to mobjs.
That always increment and are thus never repeated during a level.
Then clear out the ID list when changing levels.
This way, specific mobj can be searched for and returned to LUA/Coal without having to rely on TAGs.

The lookup could probably be something like std::unordered_map<uint64_t, MapObject *> mobj_list
And then you would do mobj_list[TID]

@LoboEire LoboEire added the enhancement New feature or request label Dec 30, 2024
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

1 participant