@@ -5320,7 +5320,7 @@ pub struct MaterialDefinition {
53205320 // @@protoc_insertion_point(field:RemoteFortressReader.MaterialDefinition.id)
53215321 pub id: ::std::option::Option<::std::string::String>,
53225322 // @@protoc_insertion_point(field:RemoteFortressReader.MaterialDefinition.name)
5323- pub name: ::std::option::Option<::std::string::String >,
5323+ pub name: ::std::option::Option<::std::vec::Vec<u8> >,
53245324 // @@protoc_insertion_point(field:RemoteFortressReader.MaterialDefinition.state_color)
53255325 pub state_color: ::protobuf::MessageField<ColorDefinition>,
53265326 // @@protoc_insertion_point(field:RemoteFortressReader.MaterialDefinition.instrument)
@@ -5383,12 +5383,12 @@ impl MaterialDefinition {
53835383 self.id.take().unwrap_or_else(|| ::std::string::String::new())
53845384 }
53855385
5386- // optional string name = 3;
5386+ // optional bytes name = 3;
53875387
5388- pub fn name(&self) -> &str {
5388+ pub fn name(&self) -> &[u8] {
53895389 match self.name.as_ref() {
53905390 Some(v) => v,
5391- None => "" ,
5391+ None => &[] ,
53925392 }
53935393 }
53945394
@@ -5401,22 +5401,22 @@ impl MaterialDefinition {
54015401 }
54025402
54035403 // Param is passed by value, moved
5404- pub fn set_name(&mut self, v: ::std::string::String ) {
5404+ pub fn set_name(&mut self, v: ::std::vec::Vec<u8> ) {
54055405 self.name = ::std::option::Option::Some(v);
54065406 }
54075407
54085408 // Mutable pointer to the field.
54095409 // If field is not initialized, it is initialized with default value first.
5410- pub fn mut_name(&mut self) -> &mut ::std::string::String {
5410+ pub fn mut_name(&mut self) -> &mut ::std::vec::Vec<u8> {
54115411 if self.name.is_none() {
5412- self.name = ::std::option::Option::Some(::std::string::String ::new());
5412+ self.name = ::std::option::Option::Some(::std::vec::Vec ::new());
54135413 }
54145414 self.name.as_mut().unwrap()
54155415 }
54165416
54175417 // Take field
5418- pub fn take_name(&mut self) -> ::std::string::String {
5419- self.name.take().unwrap_or_else(|| ::std::string::String ::new())
5418+ pub fn take_name(&mut self) -> ::std::vec::Vec<u8> {
5419+ self.name.take().unwrap_or_else(|| ::std::vec::Vec ::new())
54205420 }
54215421
54225422 // optional int32 up_step = 6;
@@ -5565,7 +5565,7 @@ impl ::protobuf::Message for MaterialDefinition {
55655565 self.id = ::std::option::Option::Some(is.read_string()?);
55665566 },
55675567 26 => {
5568- self.name = ::std::option::Option::Some(is.read_string ()?);
5568+ self.name = ::std::option::Option::Some(is.read_bytes ()?);
55695569 },
55705570 34 => {
55715571 ::protobuf::rt::read_singular_message_into_field(is, &mut self.state_color)?;
@@ -5602,7 +5602,7 @@ impl ::protobuf::Message for MaterialDefinition {
56025602 my_size += ::protobuf::rt::string_size(2, &v);
56035603 }
56045604 if let Some(v) = self.name.as_ref() {
5605- my_size += ::protobuf::rt::string_size (3, &v);
5605+ my_size += ::protobuf::rt::bytes_size (3, &v);
56065606 }
56075607 if let Some(v) = self.state_color.as_ref() {
56085608 let len = v.compute_size();
@@ -5634,7 +5634,7 @@ impl ::protobuf::Message for MaterialDefinition {
56345634 os.write_string(2, v)?;
56355635 }
56365636 if let Some(v) = self.name.as_ref() {
5637- os.write_string (3, v)?;
5637+ os.write_bytes (3, v)?;
56385638 }
56395639 if let Some(v) = self.state_color.as_ref() {
56405640 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
@@ -11270,7 +11270,7 @@ pub struct WorldMap {
1127011270 // @@protoc_insertion_point(field:RemoteFortressReader.WorldMap.world_height)
1127111271 pub world_height: ::std::option::Option<i32>,
1127211272 // @@protoc_insertion_point(field:RemoteFortressReader.WorldMap.name)
11273- pub name: ::std::option::Option<::std::string::String >,
11273+ pub name: ::std::option::Option<::std::vec::Vec<u8> >,
1127411274 // @@protoc_insertion_point(field:RemoteFortressReader.WorldMap.name_english)
1127511275 pub name_english: ::std::option::Option<::std::string::String>,
1127611276 // @@protoc_insertion_point(field:RemoteFortressReader.WorldMap.elevation)
@@ -11369,12 +11369,12 @@ impl WorldMap {
1136911369 self.world_height = ::std::option::Option::Some(v);
1137011370 }
1137111371
11372- // optional string name = 3;
11372+ // optional bytes name = 3;
1137311373
11374- pub fn name(&self) -> &str {
11374+ pub fn name(&self) -> &[u8] {
1137511375 match self.name.as_ref() {
1137611376 Some(v) => v,
11377- None => "" ,
11377+ None => &[] ,
1137811378 }
1137911379 }
1138011380
@@ -11387,22 +11387,22 @@ impl WorldMap {
1138711387 }
1138811388
1138911389 // Param is passed by value, moved
11390- pub fn set_name(&mut self, v: ::std::string::String ) {
11390+ pub fn set_name(&mut self, v: ::std::vec::Vec<u8> ) {
1139111391 self.name = ::std::option::Option::Some(v);
1139211392 }
1139311393
1139411394 // Mutable pointer to the field.
1139511395 // If field is not initialized, it is initialized with default value first.
11396- pub fn mut_name(&mut self) -> &mut ::std::string::String {
11396+ pub fn mut_name(&mut self) -> &mut ::std::vec::Vec<u8> {
1139711397 if self.name.is_none() {
11398- self.name = ::std::option::Option::Some(::std::string::String ::new());
11398+ self.name = ::std::option::Option::Some(::std::vec::Vec ::new());
1139911399 }
1140011400 self.name.as_mut().unwrap()
1140111401 }
1140211402
1140311403 // Take field
11404- pub fn take_name(&mut self) -> ::std::string::String {
11405- self.name.take().unwrap_or_else(|| ::std::string::String ::new())
11404+ pub fn take_name(&mut self) -> ::std::vec::Vec<u8> {
11405+ self.name.take().unwrap_or_else(|| ::std::vec::Vec ::new())
1140611406 }
1140711407
1140811408 // optional string name_english = 4;
@@ -11770,7 +11770,7 @@ impl ::protobuf::Message for WorldMap {
1177011770 self.world_height = ::std::option::Option::Some(is.read_int32()?);
1177111771 },
1177211772 26 => {
11773- self.name = ::std::option::Option::Some(is.read_string ()?);
11773+ self.name = ::std::option::Option::Some(is.read_bytes ()?);
1177411774 },
1177511775 34 => {
1177611776 self.name_english = ::std::option::Option::Some(is.read_string()?);
@@ -11887,7 +11887,7 @@ impl ::protobuf::Message for WorldMap {
1188711887 my_size += ::protobuf::rt::int32_size(2, v);
1188811888 }
1188911889 if let Some(v) = self.name.as_ref() {
11890- my_size += ::protobuf::rt::string_size (3, &v);
11890+ my_size += ::protobuf::rt::bytes_size (3, &v);
1189111891 }
1189211892 if let Some(v) = self.name_english.as_ref() {
1189311893 my_size += ::protobuf::rt::string_size(4, &v);
@@ -11971,7 +11971,7 @@ impl ::protobuf::Message for WorldMap {
1197111971 os.write_int32(2, v)?;
1197211972 }
1197311973 if let Some(v) = self.name.as_ref() {
11974- os.write_string (3, v)?;
11974+ os.write_bytes (3, v)?;
1197511975 }
1197611976 if let Some(v) = self.name_english.as_ref() {
1197711977 os.write_string(4, v)?;
@@ -26278,11 +26278,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\
2627826278 lue\x18\x03\x20\x02(\x05R\x04blue\"\xea\x02\n\x12MaterialDefinition\x128\
2627926279 \n\x08mat_pair\x18\x01\x20\x02(\x0b2\x1d.RemoteFortressReader.MatPairR\
2628026280 \x07matPair\x12\x0e\n\x02id\x18\x02\x20\x01(\tR\x02id\x12\x12\n\x04name\
26281- \x18\x03\x20\x01(\tR \x04name\x12F\n\x0bstate_color\x18\x04\x20\x01(\x0b2 \
26282- %.RemoteFortressReader.ColorDefinitionR\nstateColor\x12@\n\ninstrument \
26283- \x18\x05\x20\x01(\x0b2\x20.ItemdefInstrument.InstrumentDefR\ninstrument \
26284- \x12\x17\n\x07up_step\x18\x06\x20\x01(\x05R\x06upStep\x12\x1b\n\tdown_st \
26285- ep \x18\x07\x20\x01(\x05R\x08downStep\x126\n\x05layer\x18\x08\x20\x01(\
26281+ \x18\x03\x20\x01(\x0cR \x04name\x12F\n\x0bstate_color\x18\x04\x20\x01(\
26282+ \x0b2 %.RemoteFortressReader.ColorDefinitionR\nstateColor\x12@\n\ninstrum \
26283+ ent \x18\x05\x20\x01(\x0b2\x20.ItemdefInstrument.InstrumentDefR\ninstrume \
26284+ nt \x12\x17\n\x07up_step\x18\x06\x20\x01(\x05R\x06upStep\x12\x1b\n\tdown_ \
26285+ step \x18\x07\x20\x01(\x05R\x08downStep\x126\n\x05layer\x18\x08\x20\x01(\
2628626286 \x0e2\x20.RemoteFortressReader.ArmorLayerR\x05layer\"\x87\x01\n\x0cBuild\
2628726287 ingType\x12#\n\rbuilding_type\x18\x01\x20\x02(\x05R\x0cbuildingType\x12)\
2628826288 \n\x10building_subtype\x18\x02\x20\x02(\x05R\x0fbuildingSubtype\x12'\n\
@@ -26383,9 +26383,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\
2638326383 tusTypeR\x07stratus\x12/\n\x03fog\x18\x05\x20\x01(\x0e2\x1d.RemoteFortre\
2638426384 ssReader.FogTypeR\x03fog\"\xf1\x06\n\x08WorldMap\x12\x1f\n\x0bworld_widt\
2638526385 h\x18\x01\x20\x02(\x05R\nworldWidth\x12!\n\x0cworld_height\x18\x02\x20\
26386- \x02(\x05R\x0bworldHeight\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name \
26387- \x12!\n\x0cname_english\x18\x04\x20\x01(\tR\x0bnameEnglish\x12\x1c\n\tel \
26388- evation \x18\x05\x20\x03(\x05R\televation\x12\x1a\n\x08rainfall\x18\x06\
26386+ \x02(\x05R\x0bworldHeight\x12\x12\n\x04name\x18\x03\x20\x01(\x0cR\x04nam \
26387+ e \x12!\n\x0cname_english\x18\x04\x20\x01(\tR\x0bnameEnglish\x12\x1c\n\te \
26388+ levation \x18\x05\x20\x03(\x05R\televation\x12\x1a\n\x08rainfall\x18\x06\
2638926389 \x20\x03(\x05R\x08rainfall\x12\x1e\n\nvegetation\x18\x07\x20\x03(\x05R\n\
2639026390 vegetation\x12\x20\n\x0btemperature\x18\x08\x20\x03(\x05R\x0btemperature\
2639126391 \x12\x1a\n\x08evilness\x18\t\x20\x03(\x05R\x08evilness\x12\x1a\n\x08drai\
0 commit comments