3 #[mt_derive(to = "clt")]
11 #[mt_derive(to = "clt", repr = "u8")]
33 #[mt_derive(to = "clt", repr = "u16", tag = "type", content = "data")]
36 serialize_version: u8,
37 #[mt(const_before = "1u16")] // compression
39 auth_methods: EnumSet<AuthMethod>,
46 sudo_auth_methods: EnumSet<AuthMethod>,
49 #[mt(const_after = "[0u8; 15]")]
50 sudo_auth_methods: EnumSet<AuthMethod>,
53 Kick(KickReason) = 10,
77 flags: EnumSet<CsmRestrictionFlag>,
90 #[mt(const_before = "1u8")]
91 msg_type: ChatMsgType,
96 timestamp: i64, // unix time
123 transition_time: f32,
132 #[mt(len = "(u32, (DefCfg, u32))")]
133 files: HashMap<String, Vec<u8>>, // name -> payload
135 #[mt(size = "u32", zlib)]
137 #[mt(const_before = "1u8")] // version
141 files: HashMap<String, String>, // name -> base64 sha1 hash
144 #[mt(size = "u32", zlib)]
146 #[mt(const_before = "0u8")] // version
148 aliases: HashMap<String, String>,
154 src_type: SoundSrcType,
157 #[serde(rename = "loop")]
167 privs: HashSet<String>,
203 expiration_time: f32,
210 anim_params: TileAnim,
223 expiration_time: [f32; 2],
231 attached_obj_id: u16,
232 anim_params: TileAnim,
251 flags: EnumSet<HudFlag>,
252 mask: EnumSet<HudFlag>,
254 SetHotbarParam(HotbarParam) = 77,
260 OverrideDayNightRatio {
261 #[serde(rename = "override")]
262 ratio_override: bool,
276 RemoveParticleSpawner {
281 diffuse_color: Color,
282 ambient_color: Color,
293 update_type: PlayerListUpdateType,
294 players: HashSet<String>,
307 changed: HashMap<[i16; 3], NodeMeta>,
336 MinimapModes(MinimapModesPkt) = 98,