|
|
@ -2,7 +2,7 @@ use std::convert::{From, Into, TryFrom, TryInto}; |
|
|
|
use std::collections::HashMap;
|
|
|
|
|
|
|
|
use libpso::packet::ship::{UpdateConfig, WriteInfoboard};
|
|
|
|
use libpso::character::character::{Character};
|
|
|
|
use libpso::character::character::{Character, FullCharacter};
|
|
|
|
use crate::entity::item::tech::Technique;
|
|
|
|
use crate::entity::account::UserAccountId;
|
|
|
|
|
|
|
@ -229,6 +229,23 @@ pub struct CharacterGuildCard { |
|
|
|
pub description: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
pub struct CharacterTechMenu {
|
|
|
|
pub tech_menu: [u8; 40],
|
|
|
|
}
|
|
|
|
|
|
|
|
impl CharacterTechMenu {
|
|
|
|
fn new() -> CharacterTechMenu {
|
|
|
|
CharacterTechMenu {
|
|
|
|
tech_menu: FullCharacter::default().tech_menu,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn as_bytes(&self) -> [u8; 40] {
|
|
|
|
self.tech_menu
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
pub struct CharacterEntityId(pub u32);
|
|
|
@ -249,6 +266,8 @@ pub struct NewCharacterEntity { |
|
|
|
pub config: CharacterConfig,
|
|
|
|
pub info_board: CharacterInfoboard,
|
|
|
|
pub guildcard: CharacterGuildCard,
|
|
|
|
|
|
|
|
pub tech_menu: CharacterTechMenu,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl NewCharacterEntity {
|
|
|
@ -265,6 +284,7 @@ impl NewCharacterEntity { |
|
|
|
config: CharacterConfig::new(),
|
|
|
|
info_board: CharacterInfoboard::new(),
|
|
|
|
guildcard: CharacterGuildCard::default(),
|
|
|
|
tech_menu: CharacterTechMenu::new(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -286,4 +306,6 @@ pub struct CharacterEntity { |
|
|
|
pub config: CharacterConfig,
|
|
|
|
pub info_board: CharacterInfoboard,
|
|
|
|
pub guildcard: CharacterGuildCard,
|
|
|
|
|
|
|
|
pub tech_menu: CharacterTechMenu,
|
|
|
|
}
|