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

Refactor ResourceManager #151

Open
wateret opened this issue May 6, 2019 · 0 comments
Open

Refactor ResourceManager #151

wateret opened this issue May 6, 2019 · 0 comments
Labels

Comments

@wateret
Copy link
Owner

wateret commented May 6, 2019

Should let the ResourceManager have two keys.

  • string id (hold obj as raw pointer)
  • integer index (hold obj as unique_ptr)

Serialize them in integer index order. (Also ForEach iterates them in integer index order)

Currently we use an integer index for HeroClass but we may use it globally later to enhance performance and memory.

% Should all the classes that are managed by ResourceManager have an integer index member?

@wateret wateret added the engine label May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant