Mark the end of the current turn and increment the turn count. Returns the turn number that just completed (1-indexed).
(&mut self)
| 355 | /// |
| 356 | /// Returns the turn number that just completed (1-indexed). |
| 357 | pub fn end_turn(&mut self) -> u32 { |
| 358 | self.turn_count += 1; |
| 359 | self.current_turn_started_at = None; |
| 360 | self.turn_count |
| 361 | } |
| 362 | |
| 363 | /// Returns the duration of the current turn in milliseconds, if a turn is active. |
| 364 | pub fn current_turn_duration_ms(&self) -> Option<u64> { |
no outgoing calls