diff --git a/src/character/character.rs b/src/character/character.rs index ac79bbb..4d5a7ac 100644 --- a/src/character/character.rs +++ b/src/character/character.rs @@ -79,6 +79,12 @@ impl Character { } } +impl std::default::Default for Character { + fn default() -> Character { + Character::from_bytes(&mut std::io::Cursor::new([0; 0x2000].to_vec())).unwrap() + } +} + #[derive(Copy, Clone, Debug, PartialEq)] #[repr(C)] pub struct SelectScreenCharacter { @@ -257,6 +263,12 @@ pub struct FullCharacter { pub key_team_config: KeyTeamConfig, } +impl std::default::Default for FullCharacter { + fn default() -> FullCharacter { + FullCharacter::from_bytes(&mut std::io::Cursor::new([0; 0x3998].to_vec())).unwrap() + } +} + #[derive(PSOPacketData, Copy, Clone)] pub struct DBChar { pub inventory: Inventory,