aoe2-probe 0.3.2

A rust library for editing aoe2scenario files from AoE2 DE.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{parse::Token, utils::PatchedMap};

pub struct PlayerDataOne;
impl PlayerDataOne {
    pub fn template() -> Token {
        let mut root = PatchedMap::with_capacity(5);
        root.push_back("active", 0_u32);
        root.push_back("human", 0_u32);
        root.push_back("civilization", 40_u32);
        root.push_back("architecture_set", 40_u32);
        root.push_back("cty_mode", 4_u32);

        root.into()
    }
}