fmc_protocol 0.1.3

The fmc protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use fmc_protocol_derive::{ClientBound, ServerBound};
use serde::{Deserialize, Serialize};

/// A set of assets from the server
#[derive(ClientBound, Serialize, Deserialize, Debug)]
pub struct AssetResponse {
    /// Assets stored as a tarball
    pub file: Vec<u8>,
}

/// Sent by clients if they don't have assets (or the wrong ones).
#[derive(ServerBound, Serialize, Deserialize, Debug, Clone, Copy)]
pub struct AssetRequest;