mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-18 21:53:22 +00:00
## About The Pull Request ai controllers that have exhausted all their current behaviors now stop processing until the next cycle, so we no longer need to do these checks on every process fire. idle behaviors are now instead handled by a new low priority subsystem. these are the costs before/after roughly 25 minutes into the round  ## Why It's Good For The Game improves ai performance ## Changelog 🆑 /🆑
20 lines
487 B
Plaintext
20 lines
487 B
Plaintext
///all basic ai subtrees
|
|
GLOBAL_LIST_EMPTY(ai_subtrees)
|
|
|
|
///basic ai controllers based on status
|
|
GLOBAL_LIST_INIT(ai_controllers_by_status, list(
|
|
AI_STATUS_ON = list(),
|
|
AI_STATUS_OFF = list(),
|
|
AI_STATUS_IDLE = list(),
|
|
))
|
|
|
|
///basic ai controllers based on their z level
|
|
GLOBAL_LIST_EMPTY(ai_controllers_by_zlevel)
|
|
|
|
///basic ai controllers that are currently performing idled behaviors
|
|
GLOBAL_LIST_INIT(unplanned_controllers, list(
|
|
AI_STATUS_ON = list(),
|
|
AI_STATUS_IDLE = list(),
|
|
))
|
|
|