rust/hedgewars-engine-messages/src/parser.rs
changeset 15831 c3971b38bbfa
parent 15305 ae8e14d14596
child 16011 cf580d9ff7ef
--- a/rust/hedgewars-engine-messages/src/parser.rs	Fri Jun 25 22:34:26 2021 +0200
+++ b/rust/hedgewars-engine-messages/src/parser.rs	Sat Jun 26 00:13:28 2021 +0200
@@ -81,6 +81,7 @@
 named!(config_message<&[u8], ConfigEngineMessage>, alt!(
     do_parse!(tag!("C") >> (ConfigRequest))
     | do_parse!(tag!("eseed ") >> s: string_tail >> ( SetSeed(s)) )
+    | do_parse!(tag!("e$feature_size ") >> s: string_tail >> ( SetFeatureSize(s.parse::<u8>().unwrap())) )
 ));
 
 named!(timestamped_message<&[u8], (SyncedEngineMessage, u16)>,