mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-11-02 05:30:55 +00:00
22 lines
367 B
Rust
22 lines
367 B
Rust
|
|
use noita_api::game_print;
|
||
|
|
#[derive(Default)]
|
||
|
|
pub struct Pos {
|
||
|
|
x: f64,
|
||
|
|
y: f64,
|
||
|
|
}
|
||
|
|
impl Pos {
|
||
|
|
pub fn new(x: f64, y: f64) -> Self {
|
||
|
|
Self { x, y }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
#[derive(Default)]
|
||
|
|
pub struct Blob {
|
||
|
|
pub pos: Pos,
|
||
|
|
}
|
||
|
|
impl Blob {
|
||
|
|
pub fn update(&mut self) {
|
||
|
|
game_print(self.pos.x.to_string());
|
||
|
|
game_print(self.pos.y.to_string());
|
||
|
|
}
|
||
|
|
}
|