3 #[mt_derive(to = "clt")]
11 #[mt_derive(to = "clt", repr = "u8")]
35 #[mt_derive(to = "clt", repr = "u16", tag = "type", content = "data")]
38 serialize_version: u8,
39 #[mt(const_before = "1u16")] // compression
41 auth_methods: EnumSet<AuthMethod>,
48 sudo_auth_methods: EnumSet<AuthMethod>,
51 #[mt(const_after = "[0u8; 15]")]
52 sudo_auth_methods: EnumSet<AuthMethod>,
55 Kick(KickReason) = 10,
79 flags: EnumSet<CsmRestrictionFlag>,
92 #[mt(const_before = "1u8")]
93 msg_type: ChatMsgType,
98 timestamp: i64, // unix time
125 transition_time: f32,
134 #[mt(len = "(u32, (DefCfg, u32))")]
135 files: HashMap<String, Vec<u8>>, // name -> payload
137 #[mt(size = "u32", zlib)]
139 #[mt(const_before = "1u8")] // version
143 files: HashMap<String, String>, // name -> base64 sha1 hash
146 #[mt(size = "u32", zlib)]
148 #[mt(const_before = "0u8")] // version
150 aliases: HashMap<String, String>,
156 src_type: SoundSrcType,
159 #[serde(rename = "loop")]
169 privs: HashSet<String>,
205 expiration_time: f32,
212 anim_params: TileAnim,
225 expiration_time: [f32; 2],
233 attached_obj_id: u16,
234 anim_params: TileAnim,
253 flags: EnumSet<HudFlag>,
254 mask: EnumSet<HudFlag>,
256 SetHotbarParam(HotbarParam) = 77,
260 SkyParams(SkyParams) = 79,
261 OverrideDayNightRatio {
262 #[serde(rename = "override")]
263 ratio_override: bool,
277 RemoveParticleSpawner {
280 CloudParams(CloudParams) = 84,
287 update_type: PlayerListUpdateType,
288 players: HashSet<String>,
301 changed: HashMap<[i16; 3], NodeMeta>,
303 SunParams(SunParams) = 90,
304 MoonParams(MoonParams) = 91,
305 StarParams(StarParams) = 92,
313 MinimapModes(MinimapModesPkt) = 98,