mirror of
https://github.com/redstrate/Physis.git
synced 2025-06-08 07:37:46 +00:00
Add build_skeleton_path function
This commit is contained in:
parent
85bcfa5db6
commit
2868a2adad
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,13 @@ pub fn get_race_id(race: Race, subrace: Subrace, gender: Gender) -> Option<i32>
|
||||||
Some(internal_race::convert_to_internal(race, subrace, gender).unwrap() as i32)
|
Some(internal_race::convert_to_internal(race, subrace, gender).unwrap() as i32)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn build_skeleton_path(race: Race, subrace: Subrace, gender: Gender) -> String {
|
||||||
|
format!(
|
||||||
|
"chara/human/c{0:04}/skeleton/base/b0001/skl_c{0:04}b0001.sklb",
|
||||||
|
get_race_id(race, subrace, gender).unwrap()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Add table
Reference in a new issue