Technique::from_value
This commit is contained in:
parent
cd1c30c8eb
commit
412d4b8e81
@ -48,6 +48,31 @@ impl Technique {
|
||||
Technique::Megid => 18,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_value(value: u8) -> Technique {
|
||||
match value {
|
||||
0 => Technique::Foie,
|
||||
1 => Technique::Gifoie,
|
||||
2 => Technique::Rafoie,
|
||||
3 => Technique::Barta,
|
||||
4 => Technique::Gibarta,
|
||||
5 => Technique::Rabarta,
|
||||
6 => Technique::Zonde,
|
||||
7 => Technique::Gizonde,
|
||||
8 => Technique::Razonde,
|
||||
9 => Technique::Grants,
|
||||
10 => Technique::Deband,
|
||||
11 => Technique::Jellen,
|
||||
12 => Technique::Zalure,
|
||||
13 => Technique::Shifta,
|
||||
14 => Technique::Ryuker,
|
||||
15 => Technique::Resta,
|
||||
16 => Technique::Anti,
|
||||
17 => Technique::Reverser,
|
||||
18 => Technique::Megid,
|
||||
_ => panic!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user