Skip to main content

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

1//! Always the first event that is fired for a log file.
2
3use serde::{Deserialize, Serialize};
4
5/// Always the first event that is fired for a log file. In the case where a log file is
6/// [Continued](ContinuedEvent), the continued log file gets its own file header with a new part
7/// number.
8#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
9pub struct FileHeaderEvent {
10    /// The part number for the log file. When just starting the game this will always be 1 and
11    /// this is incremented with each continued log.
12    pub part: u8,
13
14    /// The language the player has configured.
15    pub language: String,
16
17    /// Whether the player has Odyssey enabled.
18    #[serde(default, rename = "Odyssey")]
19    pub odyssey: bool,
20
21    /// The version of the game.
22    #[serde(rename = "gameversion")]
23    pub game_version: String,
24
25    /// The internal build number for the version of the game.
26    pub build: String,
27}