|
|
@ -120,4 +120,35 @@ impl SelectScreenCharacter { |
|
|
|
std::mem::transmute(*self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn as_character(&self) -> Character {
|
|
|
|
Character {
|
|
|
|
exp: self.exp,
|
|
|
|
level: self.level,
|
|
|
|
guildcard: self.guildcard,
|
|
|
|
_unknown3: self._unknown,
|
|
|
|
name_color: self.name_color,
|
|
|
|
model: self.model,
|
|
|
|
name_color_checksum: self.name_color_checksum,
|
|
|
|
section_id: self.section_id,
|
|
|
|
ch_class: self.ch_class,
|
|
|
|
v2flags: self.v2flags,
|
|
|
|
version: self.version,
|
|
|
|
v1flags: self.v1flags,
|
|
|
|
costume: self.costume,
|
|
|
|
skin: self.skin,
|
|
|
|
face: self.face,
|
|
|
|
head: self.head,
|
|
|
|
hair: self.hair,
|
|
|
|
hair_r: self.hair_r,
|
|
|
|
hair_g: self.hair_g,
|
|
|
|
hair_b: self.hair_b,
|
|
|
|
prop_x: self.prop_x,
|
|
|
|
prop_y: self.prop_y,
|
|
|
|
name: self.name,
|
|
|
|
play_time: self.play_time,
|
|
|
|
|
|
|
|
..Character::default()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|