17 lines
264 B
Plaintext
17 lines
264 B
Plaintext
//asd
|
|
import triple_import_vec2::Vec2;
|
|
|
|
struct Ship {
|
|
position: Vec2,
|
|
velocity: Vec2,
|
|
}
|
|
|
|
|
|
impl Ship {
|
|
pub fn foo(&self, vec: Vec2) {
|
|
let b: Ship = Ship {
|
|
position: Vec2::zero(),
|
|
velocity: Vec2::zero(),
|
|
};
|
|
}
|
|
} |