Yilmas / hCoreAI

Screeps AI
2 stars 3 forks source link

brain.Memory Overhaul #8

Closed Yilmas closed 7 years ago

Yilmas commented 7 years ago

We are in the process of overhauling the old brain.memory system.

The new system, will no longer have values for bodyParts, and each room will be kept in a Memory.claimList. In this list, we will generate a lot of the old data, such as object references to sources, but also references to minerals.

Furthermore, the new brain.Memory will no longer use the Game.rooms to iterate, but instead a custom value through Memory.claimList.

Yilmas commented 7 years ago

We need a brain.custom script, in which we will have 2 functions. The first called "injections" which will handle all manual memory injections, such as claims and squads. Secondly, a function for running just about anykind of code, most likely for testing or debugging. It is imperative, that this function is last function to be run in the life-cycle of the application.