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(const16 = 1)] // compression
39 auth_methods: EnumSet<AuthMethod>,
46 sudo_auth_methods: EnumSet<AuthMethod>,
49 sudo_auth_methods: EnumSet<AuthMethod>,
52 Kick(KickReason) = 10,
76 flags: EnumSet<CsmRestrictionFlag>,
90 msg_type: ChatMsgType,
95 timestamp: i64, // unix time
122 transition_time: f32,
131 files: Vec<MediaPayload>, // FIXME: can we use a HashMap for this?
137 files: Vec<MediaAnnounce>, // FIXME: can we use a HashMap for this?
142 #[mt(const8 = 0)] // version
144 aliases: HashMap<String, String>,
150 src_type: SoundSrcType,
153 #[serde(rename = "loop")]
163 privs: HashSet<String>,
196 expiration_time: f32,
203 anim_params: TileAnim,
216 expiration_time: [f32; 2],
224 attached_obj_id: u16,
225 anim_params: TileAnim,
244 flags: EnumSet<HudFlag>,
245 mask: EnumSet<HudFlag>,
247 SetHotbarParam(HotbarParam) = 77,
253 OverrideDayNightRatio {
254 #[serde(rename = "override")]
255 ratio_override: bool,
269 RemoveParticleSpawner {
274 diffuse_color: Color,
275 ambient_color: Color,
286 update_type: PlayerListUpdateType,
287 players: HashSet<String>,
300 changed: HashMap<[i16; 3], NodeMeta>,
329 MinimapModes(MinimapModesPkt) = 98,