G C

Results 20 issues of G C

Changes intel from checking the energy levels every half second to only using the AIBrain's `EnergyDependingEntity` callbacks. This also involves some cooperation from the enhancement code, since some enhancements add...

Covers [a bit more than its fair share of] the first third of annotating the scenario framework. Incidentally, these functions are basically pulled from `scenariotriggers.lua`, so I also ended up...

Finishes up the scenario framework annotations. A little bit of refactoring, particularly in the offmap scripts--I tested it though and it works fine.

Adds benchmarking to the profiler and debug classes for functions. Fixes https://github.com/FAForever/fa/issues/3730