|
@ -7,7 +7,7 @@ use libpso::character::character::{DEFAULT_PALETTE_CONFIG, DEFAULT_TECH_MENU}; |
|
|
use crate::entity::item::tech::Technique;
|
|
|
use crate::entity::item::tech::Technique;
|
|
|
use crate::entity::account::UserAccountId;
|
|
|
use crate::entity::account::UserAccountId;
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, enum_utils::FromStr, derive_more::Display, Serialize, Deserialize)]
|
|
|
pub enum CharacterClass {
|
|
|
pub enum CharacterClass {
|
|
|
HUmar,
|
|
|
HUmar,
|
|
|
HUnewearl,
|
|
|
HUnewearl,
|
|
@ -64,7 +64,7 @@ impl Into<u8> for CharacterClass { |
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, derive_more::Display)]
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq, enum_utils::FromStr, derive_more::Display, Serialize, Deserialize)]
|
|
|
pub enum SectionID {
|
|
|
pub enum SectionID {
|
|
|
Viridia,
|
|
|
Viridia,
|
|
|
Greenill,
|
|
|
Greenill,
|
|
@ -134,7 +134,7 @@ pub struct TechLevel(pub u8); |
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub struct CharacterTechniques {
|
|
|
pub struct CharacterTechniques {
|
|
|
techs: HashMap<Technique, TechLevel>
|
|
|
|
|
|
|
|
|
pub techs: HashMap<Technique, TechLevel>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
impl CharacterTechniques {
|
|
|
impl CharacterTechniques {
|
|
@ -163,7 +163,7 @@ impl CharacterTechniques { |
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
#[derive(Clone)]
|
|
|
pub struct CharacterConfig {
|
|
|
pub struct CharacterConfig {
|
|
|
raw_data: [u8; 0xE8],
|
|
|
|
|
|
|
|
|
pub raw_data: [u8; 0xE8],
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
impl CharacterConfig {
|
|
|
impl CharacterConfig {
|
|
@ -184,7 +184,7 @@ impl CharacterConfig { |
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
#[derive(Clone)]
|
|
|
pub struct CharacterInfoboard {
|
|
|
pub struct CharacterInfoboard {
|
|
|
board: [u16; 172],
|
|
|
|
|
|
|
|
|
pub board: [u16; 172],
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
impl CharacterInfoboard {
|
|
|
impl CharacterInfoboard {
|
|
|