JaneDoe-ZS/nap_gameserver/src/logic/battle/team.rs
xeon 970dde020a Working OpenUI interacts and Archive battles
Implement OpenUI interacts (currently configs only for Yorozuya and Archive)
Fully working Archive (battles and cutscenes)
2024-07-30 03:04:55 +03:00

21 lines
502 B
Rust

use std::collections::HashMap;
use super::InLevelAvatarDataItem;
pub struct TeamDataItem {
pub avatar_member_list: Vec<InLevelAvatarDataItem>,
}
impl TeamDataItem {
pub fn new(avatars: &[u32]) -> Self {
Self {
avatar_member_list: avatars
.iter()
.map(|id| InLevelAvatarDataItem {
avatar_id: *id,
mp_property_override: HashMap::new(),
})
.collect(),
}
}
}