diff options
Diffstat (limited to 'azalea-protocol/src/common/server_links.rs')
| -rw-r--r-- | azalea-protocol/src/common/server_links.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/azalea-protocol/src/common/server_links.rs b/azalea-protocol/src/common/server_links.rs new file mode 100644 index 00000000..4aed98f3 --- /dev/null +++ b/azalea-protocol/src/common/server_links.rs @@ -0,0 +1,28 @@ +use azalea_buf::AzBuf; +use azalea_chat::FormattedText; + +#[derive(Clone, Debug, AzBuf)] +pub struct ServerLinkEntry { + pub kind: ServerLinkKind, + pub link: String, +} + +#[derive(Clone, Debug, AzBuf)] +pub enum ServerLinkKind { + Known(KnownLinkKind), + Component(FormattedText), +} + +#[derive(Clone, Copy, Debug, AzBuf)] +pub enum KnownLinkKind { + BugReport, + CommunityGuidelines, + Support, + Status, + Feedback, + Community, + Website, + Forums, + News, + Announcements, +} |
