bl4-ncs 0.7.7

NCS (Nexus Config Store) parser for Borderlands 4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Core types for NCS parsing support

/// Represents an unpacked value from a packed NCS string
#[derive(Debug, Clone, PartialEq)]
pub enum UnpackedValue {
    Integer(i64),
    Float(f64),
    String(String),
    Boolean(bool),
}

/// Result of unpacking a packed string
#[derive(Debug, Clone)]
pub struct UnpackedString {
    pub original: String,
    pub values: Vec<UnpackedValue>,
    pub was_packed: bool,
}