wateret / mengde

A turn-based RPG game engine inspired by 三國志曹操傳.
MIT License
27 stars 10 forks source link

Refactor ResourceManager #151

Open wateret opened 5 years ago

wateret commented 5 years ago

Should let the ResourceManager have two keys.

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?