-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
226 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use crate::core::event::prelude::*; | ||
|
||
#[derive(Debug, DummyEvent, Default)] | ||
pub struct FriendSysRecallEvent { | ||
pub from_uid: String, | ||
pub client_sequence: u32, | ||
pub time: u32, | ||
pub random: u32, | ||
pub tip: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::core::event::prelude::*; | ||
|
||
#[derive(Debug, DummyEvent, Default)] | ||
pub struct GroupSysRecallEvent { | ||
pub group_uin: u32, | ||
pub author_uid: String, | ||
pub operator_uid: Option<String>, | ||
pub sequence: u32, | ||
pub time: u32, | ||
pub random: u32, | ||
pub tip: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pub mod friend_sys_recall; | ||
pub mod group_sys_poke; | ||
pub mod group_sys_reaction; | ||
pub mod group_sys_recall; | ||
pub mod group_sys_request_join; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
pub mod friend_message; | ||
pub mod friend_poke; | ||
pub mod friend_recall; | ||
|
||
#[derive(Debug)] | ||
#[allow(clippy::large_enum_variant)] // FIXME: do we need spilt or refactoring? | ||
pub enum FriendEvent { | ||
FriendPokeEvent(friend_poke::FriendPokeEvent), // FIXME: clippy warn: at least 80 bytes | ||
FriendMessageEvent(friend_message::FriendMessageEvent), // FIXME: clippy warn: at least 320 bytes | ||
FriendRecallEvent(friend_recall::FriendRecallEvent), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pub use mania_macros::ManiaEvent; | ||
|
||
#[derive(ManiaEvent)] | ||
pub struct FriendRecallEvent { | ||
pub friend_uin: u32, | ||
pub client_sequence: u32, | ||
pub time: u32, | ||
pub random: u32, | ||
pub tip: String, | ||
} |