blob: 142a6febd23cc98302b5b1804f9041fe7aa56103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use crate::components::{Player, Visible};
use crate::componentwrapper::{ComponentWrapper, PreEntity};
pub fn make_player(name: &str) -> PreEntity {
vec![
ComponentWrapper::Visible(Visible {
sprite: "player".to_string(),
height: 1.0
}),
ComponentWrapper::Player(Player::new(name.to_string()))
]
}
|