Browse Source

defaults for character and fullcharacter

pull/3/head
jake 5 years ago
parent
commit
7b0fe752fb
  1. 12
      src/character/character.rs

12
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,

Loading…
Cancel
Save