3 #[mt_derive(to = "clt")]
11 #[mt_derive(to = "clt", repr = "u8")]
21 #[mt_derive(to = "clt", repr = "u32", enumset)]
28 #[mt_derive(to = "clt", repr = "u64", enumset)]
29 pub enum CsmRestrictionFlag {
38 #[mt_derive(to = "clt", repr = "u8")]
39 pub enum ChatMsgType {
46 #[mt_derive(to = "clt", repr = "u8")]
47 pub enum PlayerListUpdateType {
69 #[mt_derive(to = "clt", repr = "u16", tag = "type", content = "data")]
72 serialize_version: u8,
73 #[mt(const_before = "1u16")] // compression
75 auth_methods: EnumSet<AuthMethod>,
82 sudo_auth_methods: EnumSet<AuthMethod>,
85 #[mt(const_after = "[0u8; 15]")]
86 sudo_auth_methods: EnumSet<AuthMethod>,
89 Kick(KickReason) = 10,
113 CsmRestrictionFlags {
114 flags: EnumSet<CsmRestrictionFlag>,
127 #[mt(const_before = "1u8")]
128 msg_type: ChatMsgType,
133 timestamp: i64, // unix time
160 transition_time: f32,
169 #[mt(len = "(u32, (DefCfg, u32))")]
170 files: HashMap<String, Vec<u8>>, // name -> payload
172 #[mt(size = "u32", zlib)]
174 #[mt(const_before = "1u8")] // version
178 files: HashMap<String, String>, // name -> base64 sha1 hash
181 #[mt(size = "u32", zlib)]
183 #[mt(const_before = "0u8")] // version
185 aliases: HashMap<String, String>,
191 src_type: SoundSrcType,
194 #[serde(rename = "loop")]
204 privs: HashSet<String>,
240 expiration_time: f32,
247 anim_params: TileAnim,
260 expiration_time: [f32; 2],
268 attached_obj_id: u16,
269 anim_params: TileAnim,
288 flags: EnumSet<HudFlag>,
289 mask: EnumSet<HudFlag>,
291 SetHotbarParam(HotbarParam) = 77,
295 SkyParams(SkyParams) = 79,
296 OverrideDayNightRatio {
297 #[serde(rename = "override")]
298 ratio_override: bool,
312 RemoveParticleSpawner {
315 CloudParams(CloudParams) = 84,
322 update_type: PlayerListUpdateType,
323 players: HashSet<String>,
335 #[mt(size = "u32", zlib)]
336 #[mt(len = "NodeMetasLen")]
337 changed: HashMap<[i16; 3], NodeMeta>,
339 SunParams(SunParams) = 90,
340 MoonParams(MoonParams) = 91,
341 StarParams(StarParams) = 92,
349 MinimapModes(MinimapModesPkt) = 98,