push patch to allow formation changes at runtime

This commit is contained in:
RabbyDevs 2025-05-17 21:50:07 +03:00
parent af681c8f15
commit e5211c759a
3 changed files with 36 additions and 35 deletions

View file

@ -55,6 +55,4 @@ pub fn on_formation_attr_request(
response.error_code = ErrorCode::ErrEntityNotFound.into() response.error_code = ErrorCode::ErrEntityNotFound.into()
}; };
} }
} }

View file

@ -1,7 +1,10 @@
use std::collections::HashSet; use std::collections::HashSet;
use wicked_waifus_protocol::{ use wicked_waifus_protocol::{
ClientCurrentRoleReportRequest, ClientCurrentRoleReportResponse, ERemoveEntityType, ErrorCode, FormationAttrNotify, FormationAttrRequest, FormationAttrResponse, PlayerMotionRequest, PlayerMotionResponse, ProtocolUnit, RoleFavorListRequest, RoleFavorListResponse, RoleShowListUpdateRequest, RoleShowListUpdateResponse, UpdateFormationRequest, UpdateFormationResponse ClientCurrentRoleReportRequest, ClientCurrentRoleReportResponse, ERemoveEntityType, ErrorCode,
FormationAttrRequest, FormationAttrResponse, PlayerMotionRequest, PlayerMotionResponse,
RoleFavorListRequest, RoleFavorListResponse, RoleShowListUpdateRequest,
RoleShowListUpdateResponse, UpdateFormationRequest, UpdateFormationResponse,
}; };
use crate::logic::player::Player; use crate::logic::player::Player;

View file

@ -403,7 +403,7 @@ impl Player {
.iter() .iter()
.map(|&role_id| { .map(|&role_id| {
let entity_id = world.get_entity_id(role_id); let entity_id = world.get_entity_id(role_id);
let role_skin = let _role_skin =
query_components!(world, entity_id, RoleSkin).0.unwrap(); query_components!(world, entity_id, RoleSkin).0.unwrap();
FightRoleInfo { FightRoleInfo {
role_id, role_id,