7. Loop

The loop will control the following:

  • All structures/creeps from a room

The following features will be included:

  • Cache

  • Loop

7.1. Function list

Name

Description

a

b

7.2. How is it going to work?

7.2.1. Object cache

If the cache of structures/creeps is not filled or is expired the list will be rechecked and old/new values will be removed/added. This is done to save cpu and not load all structures/creeps each tick.

7.2.2. Loop

Each tick a loop will be done though all the structures/creeps of that room in the cache.

On the loop the functions get called to run the objects.