1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/// Describes the format of the save before decoding
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum Encoding {
    /// Save is encoded with the debug plaintext format:
    ///
    ///  - a save id line
    ///  - uncompressed text gamestate
    Text,

    /// Non-native plaintext imperator format
    ///
    ///  - a save id line
    ///  - zip with compressed plaintext gamestate
    TextZip,

    /// A standard ironman or normal save
    ///
    ///  - a save id line
    ///  - zip with compressed binary gamestate
    BinaryZip,

    /// Non-native binary imperator format
    ///
    ///  - a save id line
    ///  - uncompressed binary gamestate
    Binary,
}