# terra-plr-xbox360 Library for reading and modifying terraria xbox 360 player files. ## Examples Change player max life to 300 ```rust let mut player = Player::read_player(File::open("PLAYER.PLR")?)?; player.max_life = 300; player.write_player(File::create("PLAYER2.PLR")?, *SUPPORTED_VERSIONS.end())?; ``` Set 999 dirt items to first inventory slot ```rust let mut player = Player::read(File::open("PLAYER.PLR")?)?; player.inventory[0][0] = Some(ItemSlot { item: Item::DirtBlock, prefix: None, count: PositiveI16::new(999).expect("In bounds"), }); player.write(File::create("PLAYER2.PLR")?, *SUPPORTED_VERSIONS.end())?; ``` Print player name ```rust let mut player = Player::read(File::open("PLAYER.PLR")?)?; println!("{}", player.name); ``` ## License [AGPL v3+](LICENSE) © Filip K.