Browse Source

screenselectchar -> char

pull/3/head
jake 5 years ago
parent
commit
911840f02a
  1. 31
      src/character/character.rs

31
src/character/character.rs

@ -120,4 +120,35 @@ impl SelectScreenCharacter {
std::mem::transmute(*self) 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()
}
}
} }
Loading…
Cancel
Save