mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 10:34:11 +02:00
gamestate api bits
This commit is contained in:
parent
83a13e5e52
commit
fb166e0808
3 changed files with 18 additions and 10 deletions
|
|
@ -28,3 +28,9 @@ impl PartialEq for VectorXY {
|
|||
(self.x - other.x < 0.001) && (self.y - other.y < 0.001)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Vector> for VectorXY {
|
||||
fn from(vec: Vector) -> Self {
|
||||
VectorXY { x: vec.x, y: vec.y }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue