Adds a branch to the back of the queue, if it is a valid upgrade, and starts research if it is the first in the queue. Returns whether the branch was successfully added.
(&mut self, branch: Branch)
| 1178 | /// |
| 1179 | /// Returns whether the branch was successfully added. |
| 1180 | pub fn queue_research(&mut self, branch: Branch) -> bool { |
| 1181 | self.my_research_mut().add_to_queue(&branch) |
| 1182 | } |
| 1183 | |
| 1184 | /// Update the current research and process any completed upgrades. |
| 1185 | fn process_research(&mut self, team: Team) { |
no test coverage detected