1
0
Fork 0
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:
Robin Appelman 2019-12-22 18:34:05 +01:00
commit fb166e0808
3 changed files with 18 additions and 10 deletions

View file

@ -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 }
}
}