ed_journals/modules/logs/content/log_event_content/
commit_crime_event.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Fired when the player commits a crime.

use crate::civilization::Crime;
use serde::{Deserialize, Serialize};

/// Fired when the player commits a crime.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct CommitCrimeEvent {
    /// The kind of crime the player committed.
    pub crime_type: Crime,

    /// The faction that the player has commited the crime to.
    pub faction: String,

    /// The fine that needs to be paid for the crime.
    pub fine: Option<u64>,

    /// The bounty that has been placed on the player for committing the crime.
    pub bounty: Option<u64>,
}