|
|
@ -82,6 +82,7 @@ pub struct FullCharacterBytesBuilder<'a> { |
|
|
|
inventory: Option<&'a ActiveInventory>,
|
|
|
|
key_config: Option<&'a [u8; 0x16C]>,
|
|
|
|
joystick_config: Option<&'a [u8; 0x38]>,
|
|
|
|
symbol_chat: Option<&'a [u8; 1248]>,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -94,6 +95,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
inventory: None,
|
|
|
|
key_config: None,
|
|
|
|
joystick_config: None,
|
|
|
|
symbol_chat: None,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@ -139,6 +141,13 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn symbol_chat(self, symbol_chat: &'a [u8; 1248]) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
symbol_chat: Some(symbol_chat),
|
|
|
|
..self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn build(self) -> character::FullCharacter {
|
|
|
|
let character = self.character.unwrap();
|
|
|
@ -147,6 +156,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
let inventory = self.inventory.unwrap();
|
|
|
|
let key_config = self.key_config.unwrap();
|
|
|
|
let joystick_config = self.joystick_config.unwrap();
|
|
|
|
let symbol_chat = self.symbol_chat.unwrap();
|
|
|
|
|
|
|
|
character::FullCharacter {
|
|
|
|
character: CharacterBytesBuilder::new()
|
|
|
@ -165,6 +175,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
..character::KeyTeamConfig::default()
|
|
|
|
},
|
|
|
|
info_board: character.info_board.as_bytes(),
|
|
|
|
symbol_chats: *symbol_chat,
|
|
|
|
..character::FullCharacter::default()
|
|
|
|
}
|
|
|
|
}
|
|
|
|