Writes the value at the index of this planet's team array. ArrayOutOfBounds - the index of the array is out of bounds. It must be within [0, COMMUNICATION_ARRAY_LENGTH).
(&mut self, index: usize, value: i32)
| 692 | /// * ArrayOutOfBounds - the index of the array is out of |
| 693 | /// bounds. It must be within [0, COMMUNICATION_ARRAY_LENGTH). |
| 694 | pub fn write_team_array(&mut self, index: usize, value: i32) -> Result<(), GameError> { |
| 695 | let planet = self.planet(); |
| 696 | self.my_team_mut().team_arrays.write(planet, index, value) |
| 697 | } |
| 698 | |
| 699 | // ************************************************************************ |
| 700 | // ****************************** ACCESSORS ******************************* |
no test coverage detected