screeps / engine

ISC License
133 stars 66 forks source link

Implement cache for active structures in rooms #107

Open Flya opened 5 years ago

Flya commented 5 years ago

This committe is rework how game engine is calculate isActive for structures in room. The logic is implemented by using property off in raw object. The processor will update this property in the end of the tick and runtime will use it for check if structure is active.

semperrabbit commented 5 years ago

@Flya i noticed that a _check_active_structures.js was called, but not defined. is that in a commit not included in this PR? I'm assuming that would do the bulk of setting the structure.off each tick...

Flya commented 5 years ago

@semperrabbit Sorry looks like I missed to include this file. I have added this file now.