pass character_short from game

This commit is contained in:
Rusty Striker 2024-10-18 16:07:00 +03:00
parent e8291e15d9
commit a6bfd86c24
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15

View file

@ -91,8 +91,9 @@ impl<'a, C: Character<A> + Serialize + Deserialize<'a>, A: entry::GameEntry + Se
}
fn character_short(&self, character_id: usize) -> Option<CharacterShort> {
// self.characters.get(character_id).map(|c| c.char)
todo!()
self.characters
.get(character_id)
.map(|c| c.short())
}
}