Skip to content

Commit 8e6acaa

Browse files
committed
Enables conversion of ActionPath to Vec<u16>
1 parent 44a6a4a commit 8e6acaa

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tiqtak"
3-
version = "1.0.2"
3+
version = "1.0.4"
44
edition = "2024"
55
authors = ["Tolumide Shopein"]
66
exclude = [

src/game/model/path.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ impl TryFrom<&[u16]> for ActionPath {
146146
}
147147
}
148148

149+
impl From<ActionPath> for Vec<u16> {
150+
fn from(value: ActionPath) -> Self {
151+
value.mvs[..value.len].to_vec()
152+
}
153+
}
154+
149155
impl Deref for ActionPath {
150156
type Target = [u16];
151157

0 commit comments

Comments
 (0)