|
|
@ -14,6 +14,7 @@ pub struct CharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> CharacterBytesBuilder<'a> {
|
|
|
|
#[must_use]
|
|
|
|
pub fn character(self, character: &'a CharacterEntity) -> CharacterBytesBuilder<'a> {
|
|
|
|
CharacterBytesBuilder {
|
|
|
|
character: Some(character),
|
|
|
@ -21,6 +22,7 @@ impl<'a> CharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn stats(self, stats: &'a CharacterStats) -> CharacterBytesBuilder<'a> {
|
|
|
|
CharacterBytesBuilder {
|
|
|
|
stats: Some(stats),
|
|
|
@ -28,6 +30,7 @@ impl<'a> CharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn level(self, level: u32) -> CharacterBytesBuilder<'a> {
|
|
|
|
CharacterBytesBuilder {
|
|
|
|
level: Some(level),
|
|
|
@ -35,6 +38,7 @@ impl<'a> CharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn meseta(self, meseta: Meseta) -> CharacterBytesBuilder<'a> {
|
|
|
|
CharacterBytesBuilder {
|
|
|
|
meseta: Some(meseta),
|
|
|
@ -95,6 +99,7 @@ pub struct FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> FullCharacterBytesBuilder<'a> {
|
|
|
|
#[must_use]
|
|
|
|
pub fn character(self, character: &'a CharacterEntity) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
character: Some(character),
|
|
|
@ -102,6 +107,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn stats(self, stats: &'a CharacterStats) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
stats: Some(stats),
|
|
|
@ -109,6 +115,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn level(self, level: u32) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
level: Some(level),
|
|
|
@ -116,6 +123,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn meseta(self, meseta: Meseta) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
meseta: Some(meseta),
|
|
|
@ -123,6 +131,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn inventory(self, inventory: &'a CharacterInventory) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
inventory: Some(inventory),
|
|
|
@ -130,6 +139,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn bank(self, bank: &'a CharacterBank) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
bank: Some(bank),
|
|
|
@ -137,6 +147,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn key_config(self, key_config: &'a [u8; 0x16C]) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
key_config: Some(key_config),
|
|
|
@ -144,6 +155,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn joystick_config(self, joystick_config: &'a [u8; 0x38]) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
joystick_config: Some(joystick_config),
|
|
|
@ -151,6 +163,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn symbol_chat(self, symbol_chat: &'a [u8; 1248]) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
symbol_chat: Some(symbol_chat),
|
|
|
@ -158,6 +171,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn tech_menu(self, tech_menu: &'a [u8; 40]) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
tech_menu: Some(tech_menu),
|
|
|
@ -165,6 +179,7 @@ impl<'a> FullCharacterBytesBuilder<'a> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
pub fn option_flags(self, option_flags: u32) -> FullCharacterBytesBuilder<'a> {
|
|
|
|
FullCharacterBytesBuilder {
|
|
|
|
option_flags: Some(option_flags),
|
|
|
|