KungFuClan / KungFuScreeps

https://screepers.gitbook.io/screeps-typescript-starter/
9 stars 4 forks source link

Create a 2-tier CM system with backups #96

Open UhmBrock opened 4 years ago

UhmBrock commented 4 years ago

Currently we just store CM on a global variable. We should extend this to save the CM Cache objects in memory, and then restore them back to the global variable as needed. We should also have another global variable that stores CM that have already been serialized since the last global reset, so that we do not have to repeat that process.

Should be able to handle this similar to memory, in each of the CM getters