Add GetIgnoreListResponse message

This commit is contained in:
lcdr
2020-11-16 20:31:30 +01:00
parent ec2df593aa
commit ccc40f3068
4 changed files with 22 additions and 2 deletions
-1
View File
@@ -74,7 +74,6 @@ fn parse(path: &Path) -> Res<usize> {
&& !file.name().contains("[53-05-00-15]")
&& !file.name().contains("[53-05-00-1c]")
&& !file.name().contains("[53-05-00-1f]")
&& !file.name().contains("[53-05-00-22]")
&& !file.name().contains("[53-05-00-31]")
&& !file.name().contains("[76-00]")
&& !file.name().contains("[7f-00]")
+17 -1
View File
@@ -59,6 +59,7 @@ pub enum ClientMessage {
BlueprintLoadItemResponse(BlueprintLoadItemResponse) = 23,
AddFriendRequest(AddFriendRequest) = 27,
GetFriendsListResponse(GetFriendsListResponse) = 30,
GetIgnoreListResponse(GetIgnoreListResponse) = 34,
TeamInvite(TeamInvite) = 35,
MinimumChatModeResponse(MinimumChatModeResponse) = 57,
MinimumChatModeResponsePrivate(MinimumChatModeResponsePrivate) = 58,
@@ -302,6 +303,21 @@ pub enum GetFriendsListResponse {
GeneralError,
}
#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[trailing_padding=6]
pub struct IgnoreState {
object_id: ObjId,
char_name: LuWString33,
}
#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[repr(u8)]
#[post_disc_padding=2]
pub enum GetIgnoreListResponse {
Ok(LVec<u16, IgnoreState>),
GeneralError,
}
/**
Informs the client that another player has asked them to be their friend.
@@ -371,7 +387,7 @@ impl<R: Read+LERead> Deserialize<LE, R> for ChatModerationString {
}
i += 1;
}
Ok(dbg!(Self { request_id, chat_mode, whisper_name, spans } ))
Ok(Self { request_id, chat_mode, whisper_name, spans })
}
}
Binary file not shown.
@@ -0,0 +1,5 @@
ClientMessage::GetIgnoreListResponse(
GetIgnoreListResponse::Ok(
vec![].into(), // no capture with ignored characters available
),
)