the huge refactor
This commit is contained in:
@@ -16,7 +16,7 @@ impl Registerable for PlayerWithPos {
|
||||
.register_get("health", |player: &mut PlayerWithPos| player.0.borrow().health)
|
||||
.register_get("max_health", |player: &mut PlayerWithPos| player.0.borrow().max_health)
|
||||
.register_get("keys", |player: &mut PlayerWithPos| player.0.borrow().keys)
|
||||
.register_get("x", |player: &mut PlayerWithPos| player.1.borrow().player.x)
|
||||
.register_get("y", |player: &mut PlayerWithPos| player.1.borrow().player.y);
|
||||
.register_get("x", |player: &mut PlayerWithPos| player.1.borrow().player_pos().0)
|
||||
.register_get("y", |player: &mut PlayerWithPos| player.1.borrow().player_pos().1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user