mirror of
https://github.com/lcdr/lu_packets.git
synced 2026-01-07 16:30:42 -06:00
Add FriendUpdateNotify message
This commit is contained in:
@@ -73,7 +73,6 @@ fn parse(path: &Path) -> Res<usize> {
|
||||
&& !file.name().contains("[53-05-00-06]")
|
||||
&& !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-31]")
|
||||
&& !file.name().contains("[76-00]")
|
||||
&& !file.name().contains("[7f-00]")
|
||||
|
||||
@@ -59,6 +59,7 @@ pub enum ClientMessage {
|
||||
BlueprintLoadItemResponse(BlueprintLoadItemResponse) = 23,
|
||||
AddFriendRequest(AddFriendRequest) = 27,
|
||||
GetFriendsListResponse(GetFriendsListResponse) = 30,
|
||||
FriendUpdateNotify(FriendUpdateNotify) = 31,
|
||||
GetIgnoreListResponse(GetIgnoreListResponse) = 34,
|
||||
TeamInvite(TeamInvite) = 35,
|
||||
MinimumChatModeResponse(MinimumChatModeResponse) = 57,
|
||||
@@ -303,6 +304,24 @@ pub enum GetFriendsListResponse {
|
||||
GeneralError,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
#[repr(u8)]
|
||||
pub enum FriendUpdateType {
|
||||
Logout,
|
||||
Login,
|
||||
Transfer,
|
||||
FreeTrialChange,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub struct FriendUpdateNotify {
|
||||
update_type: FriendUpdateType,
|
||||
char_name: LuWString33,
|
||||
zone_id: ZoneId,
|
||||
is_best_friend: bool,
|
||||
is_free_trial: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
#[trailing_padding=6]
|
||||
pub struct IgnoreState {
|
||||
|
||||
BIN
src/world/client/tests/FriendUpdateNotify.bin
Normal file
BIN
src/world/client/tests/FriendUpdateNotify.bin
Normal file
Binary file not shown.
13
src/world/client/tests/FriendUpdateNotify.rs
Normal file
13
src/world/client/tests/FriendUpdateNotify.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
ClientMessage::FriendUpdateNotify(
|
||||
FriendUpdateNotify {
|
||||
update_type: FriendUpdateType::Transfer,
|
||||
char_name: lu!("BreezyFlyingNinja"),
|
||||
zone_id: ZoneId {
|
||||
map_id: 1100,
|
||||
instance_id: 41556,
|
||||
clone_id: 0,
|
||||
},
|
||||
is_best_friend: false,
|
||||
is_free_trial: false,
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user