Skip to main content

nil_core/world/
report.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use crate::player::PlayerId;
5use crate::report::ReportId;
6use crate::world::World;
7
8impl World {
9  pub fn forward_report(&mut self, id: ReportId, recipient: PlayerId) {
10    if self.report.forward(id, recipient.clone()) {
11      self.emit_report(recipient, id);
12    }
13  }
14}