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