1#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
12#![allow(box_pointers)]
13#![allow(dead_code)]
14#![allow(missing_docs)]
15#![allow(non_camel_case_types)]
16#![allow(non_snake_case)]
17#![allow(non_upper_case_globals)]
18#![allow(trivial_casts)]
19#![allow(unused_results)]
20#![allow(unused_mut)]
21
22const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;
27
28#[derive(PartialEq,Clone,Default,Debug)]
30pub struct ColorDefinition {
31 pub red: ::std::option::Option<i32>,
34 pub green: ::std::option::Option<i32>,
36 pub blue: ::std::option::Option<i32>,
38 pub special_fields: ::protobuf::SpecialFields,
41}
42
43impl<'a> ::std::default::Default for &'a ColorDefinition {
44 fn default() -> &'a ColorDefinition {
45 <ColorDefinition as ::protobuf::Message>::default_instance()
46 }
47}
48
49impl ColorDefinition {
50 pub fn new() -> ColorDefinition {
51 ::std::default::Default::default()
52 }
53
54 pub fn red(&self) -> i32 {
57 self.red.unwrap_or(0)
58 }
59
60 pub fn clear_red(&mut self) {
61 self.red = ::std::option::Option::None;
62 }
63
64 pub fn has_red(&self) -> bool {
65 self.red.is_some()
66 }
67
68 pub fn set_red(&mut self, v: i32) {
70 self.red = ::std::option::Option::Some(v);
71 }
72
73 pub fn green(&self) -> i32 {
76 self.green.unwrap_or(0)
77 }
78
79 pub fn clear_green(&mut self) {
80 self.green = ::std::option::Option::None;
81 }
82
83 pub fn has_green(&self) -> bool {
84 self.green.is_some()
85 }
86
87 pub fn set_green(&mut self, v: i32) {
89 self.green = ::std::option::Option::Some(v);
90 }
91
92 pub fn blue(&self) -> i32 {
95 self.blue.unwrap_or(0)
96 }
97
98 pub fn clear_blue(&mut self) {
99 self.blue = ::std::option::Option::None;
100 }
101
102 pub fn has_blue(&self) -> bool {
103 self.blue.is_some()
104 }
105
106 pub fn set_blue(&mut self, v: i32) {
108 self.blue = ::std::option::Option::Some(v);
109 }
110
111 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
112 let mut fields = ::std::vec::Vec::with_capacity(3);
113 let mut oneofs = ::std::vec::Vec::with_capacity(0);
114 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
115 "red",
116 |m: &ColorDefinition| { &m.red },
117 |m: &mut ColorDefinition| { &mut m.red },
118 ));
119 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
120 "green",
121 |m: &ColorDefinition| { &m.green },
122 |m: &mut ColorDefinition| { &mut m.green },
123 ));
124 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
125 "blue",
126 |m: &ColorDefinition| { &m.blue },
127 |m: &mut ColorDefinition| { &mut m.blue },
128 ));
129 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ColorDefinition>(
130 "ColorDefinition",
131 fields,
132 oneofs,
133 )
134 }
135}
136
137impl ::protobuf::Message for ColorDefinition {
138 const NAME: &'static str = "ColorDefinition";
139
140 fn is_initialized(&self) -> bool {
141 if self.red.is_none() {
142 return false;
143 }
144 if self.green.is_none() {
145 return false;
146 }
147 if self.blue.is_none() {
148 return false;
149 }
150 true
151 }
152
153 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
154 while let Some(tag) = is.read_raw_tag_or_eof()? {
155 match tag {
156 8 => {
157 self.red = ::std::option::Option::Some(is.read_int32()?);
158 },
159 16 => {
160 self.green = ::std::option::Option::Some(is.read_int32()?);
161 },
162 24 => {
163 self.blue = ::std::option::Option::Some(is.read_int32()?);
164 },
165 tag => {
166 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
167 },
168 };
169 }
170 ::std::result::Result::Ok(())
171 }
172
173 #[allow(unused_variables)]
175 fn compute_size(&self) -> u64 {
176 let mut my_size = 0;
177 if let Some(v) = self.red {
178 my_size += ::protobuf::rt::int32_size(1, v);
179 }
180 if let Some(v) = self.green {
181 my_size += ::protobuf::rt::int32_size(2, v);
182 }
183 if let Some(v) = self.blue {
184 my_size += ::protobuf::rt::int32_size(3, v);
185 }
186 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
187 self.special_fields.cached_size().set(my_size as u32);
188 my_size
189 }
190
191 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
192 if let Some(v) = self.red {
193 os.write_int32(1, v)?;
194 }
195 if let Some(v) = self.green {
196 os.write_int32(2, v)?;
197 }
198 if let Some(v) = self.blue {
199 os.write_int32(3, v)?;
200 }
201 os.write_unknown_fields(self.special_fields.unknown_fields())?;
202 ::std::result::Result::Ok(())
203 }
204
205 fn special_fields(&self) -> &::protobuf::SpecialFields {
206 &self.special_fields
207 }
208
209 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
210 &mut self.special_fields
211 }
212
213 fn new() -> ColorDefinition {
214 ColorDefinition::new()
215 }
216
217 fn clear(&mut self) {
218 self.red = ::std::option::Option::None;
219 self.green = ::std::option::Option::None;
220 self.blue = ::std::option::Option::None;
221 self.special_fields.clear();
222 }
223
224 fn default_instance() -> &'static ColorDefinition {
225 static instance: ColorDefinition = ColorDefinition {
226 red: ::std::option::Option::None,
227 green: ::std::option::Option::None,
228 blue: ::std::option::Option::None,
229 special_fields: ::protobuf::SpecialFields::new(),
230 };
231 &instance
232 }
233}
234
235impl ::protobuf::MessageFull for ColorDefinition {
236 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
237 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
238 descriptor.get(|| file_descriptor().message_by_package_relative_name("ColorDefinition").unwrap()).clone()
239 }
240}
241
242impl ::std::fmt::Display for ColorDefinition {
243 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
244 ::protobuf::text_format::fmt(self, f)
245 }
246}
247
248impl ::protobuf::reflect::ProtobufValue for ColorDefinition {
249 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
250}
251
252#[derive(PartialEq,Clone,Default,Debug)]
254pub struct EmbarkTileLayer {
255 pub mat_type_table: ::std::vec::Vec<::protobuf::EnumOrUnknown<BasicMaterial>>,
258 pub mat_subtype_table: ::std::vec::Vec<i32>,
260 pub tile_shape_table: ::std::vec::Vec<::protobuf::EnumOrUnknown<BasicShape>>,
262 pub tile_color_table: ::std::vec::Vec<ColorDefinition>,
264 pub special_fields: ::protobuf::SpecialFields,
267}
268
269impl<'a> ::std::default::Default for &'a EmbarkTileLayer {
270 fn default() -> &'a EmbarkTileLayer {
271 <EmbarkTileLayer as ::protobuf::Message>::default_instance()
272 }
273}
274
275impl EmbarkTileLayer {
276 pub fn new() -> EmbarkTileLayer {
277 ::std::default::Default::default()
278 }
279
280 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
281 let mut fields = ::std::vec::Vec::with_capacity(4);
282 let mut oneofs = ::std::vec::Vec::with_capacity(0);
283 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
284 "mat_type_table",
285 |m: &EmbarkTileLayer| { &m.mat_type_table },
286 |m: &mut EmbarkTileLayer| { &mut m.mat_type_table },
287 ));
288 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
289 "mat_subtype_table",
290 |m: &EmbarkTileLayer| { &m.mat_subtype_table },
291 |m: &mut EmbarkTileLayer| { &mut m.mat_subtype_table },
292 ));
293 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
294 "tile_shape_table",
295 |m: &EmbarkTileLayer| { &m.tile_shape_table },
296 |m: &mut EmbarkTileLayer| { &mut m.tile_shape_table },
297 ));
298 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
299 "tile_color_table",
300 |m: &EmbarkTileLayer| { &m.tile_color_table },
301 |m: &mut EmbarkTileLayer| { &mut m.tile_color_table },
302 ));
303 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<EmbarkTileLayer>(
304 "EmbarkTileLayer",
305 fields,
306 oneofs,
307 )
308 }
309}
310
311impl ::protobuf::Message for EmbarkTileLayer {
312 const NAME: &'static str = "EmbarkTileLayer";
313
314 fn is_initialized(&self) -> bool {
315 for v in &self.tile_color_table {
316 if !v.is_initialized() {
317 return false;
318 }
319 };
320 true
321 }
322
323 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
324 while let Some(tag) = is.read_raw_tag_or_eof()? {
325 match tag {
326 32 => {
327 self.mat_type_table.push(is.read_enum_or_unknown()?);
328 },
329 34 => {
330 ::protobuf::rt::read_repeated_packed_enum_or_unknown_into(is, &mut self.mat_type_table)?
331 },
332 42 => {
333 is.read_repeated_packed_int32_into(&mut self.mat_subtype_table)?;
334 },
335 40 => {
336 self.mat_subtype_table.push(is.read_int32()?);
337 },
338 48 => {
339 self.tile_shape_table.push(is.read_enum_or_unknown()?);
340 },
341 50 => {
342 ::protobuf::rt::read_repeated_packed_enum_or_unknown_into(is, &mut self.tile_shape_table)?
343 },
344 58 => {
345 self.tile_color_table.push(is.read_message()?);
346 },
347 tag => {
348 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
349 },
350 };
351 }
352 ::std::result::Result::Ok(())
353 }
354
355 #[allow(unused_variables)]
357 fn compute_size(&self) -> u64 {
358 let mut my_size = 0;
359 my_size += ::protobuf::rt::vec_packed_enum_or_unknown_size(4, &self.mat_type_table);
360 my_size += ::protobuf::rt::vec_packed_int32_size(5, &self.mat_subtype_table);
361 my_size += ::protobuf::rt::vec_packed_enum_or_unknown_size(6, &self.tile_shape_table);
362 for value in &self.tile_color_table {
363 let len = value.compute_size();
364 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
365 };
366 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
367 self.special_fields.cached_size().set(my_size as u32);
368 my_size
369 }
370
371 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
372 os.write_repeated_packed_enum_or_unknown(4, &self.mat_type_table)?;
373 os.write_repeated_packed_int32(5, &self.mat_subtype_table)?;
374 os.write_repeated_packed_enum_or_unknown(6, &self.tile_shape_table)?;
375 for v in &self.tile_color_table {
376 ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?;
377 };
378 os.write_unknown_fields(self.special_fields.unknown_fields())?;
379 ::std::result::Result::Ok(())
380 }
381
382 fn special_fields(&self) -> &::protobuf::SpecialFields {
383 &self.special_fields
384 }
385
386 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
387 &mut self.special_fields
388 }
389
390 fn new() -> EmbarkTileLayer {
391 EmbarkTileLayer::new()
392 }
393
394 fn clear(&mut self) {
395 self.mat_type_table.clear();
396 self.mat_subtype_table.clear();
397 self.tile_shape_table.clear();
398 self.tile_color_table.clear();
399 self.special_fields.clear();
400 }
401
402 fn default_instance() -> &'static EmbarkTileLayer {
403 static instance: EmbarkTileLayer = EmbarkTileLayer {
404 mat_type_table: ::std::vec::Vec::new(),
405 mat_subtype_table: ::std::vec::Vec::new(),
406 tile_shape_table: ::std::vec::Vec::new(),
407 tile_color_table: ::std::vec::Vec::new(),
408 special_fields: ::protobuf::SpecialFields::new(),
409 };
410 &instance
411 }
412}
413
414impl ::protobuf::MessageFull for EmbarkTileLayer {
415 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
416 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
417 descriptor.get(|| file_descriptor().message_by_package_relative_name("EmbarkTileLayer").unwrap()).clone()
418 }
419}
420
421impl ::std::fmt::Display for EmbarkTileLayer {
422 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
423 ::protobuf::text_format::fmt(self, f)
424 }
425}
426
427impl ::protobuf::reflect::ProtobufValue for EmbarkTileLayer {
428 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
429}
430
431#[derive(PartialEq,Clone,Default,Debug)]
433pub struct EmbarkTile {
434 pub world_x: ::std::option::Option<i32>,
437 pub world_y: ::std::option::Option<i32>,
439 pub world_z: ::std::option::Option<i32>,
441 pub tile_layer: ::std::vec::Vec<EmbarkTileLayer>,
443 pub current_year: ::std::option::Option<i32>,
445 pub current_season: ::std::option::Option<i32>,
447 pub is_valid: ::std::option::Option<bool>,
449 pub special_fields: ::protobuf::SpecialFields,
452}
453
454impl<'a> ::std::default::Default for &'a EmbarkTile {
455 fn default() -> &'a EmbarkTile {
456 <EmbarkTile as ::protobuf::Message>::default_instance()
457 }
458}
459
460impl EmbarkTile {
461 pub fn new() -> EmbarkTile {
462 ::std::default::Default::default()
463 }
464
465 pub fn world_x(&self) -> i32 {
468 self.world_x.unwrap_or(0)
469 }
470
471 pub fn clear_world_x(&mut self) {
472 self.world_x = ::std::option::Option::None;
473 }
474
475 pub fn has_world_x(&self) -> bool {
476 self.world_x.is_some()
477 }
478
479 pub fn set_world_x(&mut self, v: i32) {
481 self.world_x = ::std::option::Option::Some(v);
482 }
483
484 pub fn world_y(&self) -> i32 {
487 self.world_y.unwrap_or(0)
488 }
489
490 pub fn clear_world_y(&mut self) {
491 self.world_y = ::std::option::Option::None;
492 }
493
494 pub fn has_world_y(&self) -> bool {
495 self.world_y.is_some()
496 }
497
498 pub fn set_world_y(&mut self, v: i32) {
500 self.world_y = ::std::option::Option::Some(v);
501 }
502
503 pub fn world_z(&self) -> i32 {
506 self.world_z.unwrap_or(0)
507 }
508
509 pub fn clear_world_z(&mut self) {
510 self.world_z = ::std::option::Option::None;
511 }
512
513 pub fn has_world_z(&self) -> bool {
514 self.world_z.is_some()
515 }
516
517 pub fn set_world_z(&mut self, v: i32) {
519 self.world_z = ::std::option::Option::Some(v);
520 }
521
522 pub fn current_year(&self) -> i32 {
525 self.current_year.unwrap_or(0)
526 }
527
528 pub fn clear_current_year(&mut self) {
529 self.current_year = ::std::option::Option::None;
530 }
531
532 pub fn has_current_year(&self) -> bool {
533 self.current_year.is_some()
534 }
535
536 pub fn set_current_year(&mut self, v: i32) {
538 self.current_year = ::std::option::Option::Some(v);
539 }
540
541 pub fn current_season(&self) -> i32 {
544 self.current_season.unwrap_or(0)
545 }
546
547 pub fn clear_current_season(&mut self) {
548 self.current_season = ::std::option::Option::None;
549 }
550
551 pub fn has_current_season(&self) -> bool {
552 self.current_season.is_some()
553 }
554
555 pub fn set_current_season(&mut self, v: i32) {
557 self.current_season = ::std::option::Option::Some(v);
558 }
559
560 pub fn is_valid(&self) -> bool {
563 self.is_valid.unwrap_or(false)
564 }
565
566 pub fn clear_is_valid(&mut self) {
567 self.is_valid = ::std::option::Option::None;
568 }
569
570 pub fn has_is_valid(&self) -> bool {
571 self.is_valid.is_some()
572 }
573
574 pub fn set_is_valid(&mut self, v: bool) {
576 self.is_valid = ::std::option::Option::Some(v);
577 }
578
579 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
580 let mut fields = ::std::vec::Vec::with_capacity(7);
581 let mut oneofs = ::std::vec::Vec::with_capacity(0);
582 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
583 "world_x",
584 |m: &EmbarkTile| { &m.world_x },
585 |m: &mut EmbarkTile| { &mut m.world_x },
586 ));
587 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
588 "world_y",
589 |m: &EmbarkTile| { &m.world_y },
590 |m: &mut EmbarkTile| { &mut m.world_y },
591 ));
592 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
593 "world_z",
594 |m: &EmbarkTile| { &m.world_z },
595 |m: &mut EmbarkTile| { &mut m.world_z },
596 ));
597 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
598 "tile_layer",
599 |m: &EmbarkTile| { &m.tile_layer },
600 |m: &mut EmbarkTile| { &mut m.tile_layer },
601 ));
602 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
603 "current_year",
604 |m: &EmbarkTile| { &m.current_year },
605 |m: &mut EmbarkTile| { &mut m.current_year },
606 ));
607 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
608 "current_season",
609 |m: &EmbarkTile| { &m.current_season },
610 |m: &mut EmbarkTile| { &mut m.current_season },
611 ));
612 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
613 "is_valid",
614 |m: &EmbarkTile| { &m.is_valid },
615 |m: &mut EmbarkTile| { &mut m.is_valid },
616 ));
617 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<EmbarkTile>(
618 "EmbarkTile",
619 fields,
620 oneofs,
621 )
622 }
623}
624
625impl ::protobuf::Message for EmbarkTile {
626 const NAME: &'static str = "EmbarkTile";
627
628 fn is_initialized(&self) -> bool {
629 if self.world_x.is_none() {
630 return false;
631 }
632 if self.world_y.is_none() {
633 return false;
634 }
635 if self.world_z.is_none() {
636 return false;
637 }
638 for v in &self.tile_layer {
639 if !v.is_initialized() {
640 return false;
641 }
642 };
643 true
644 }
645
646 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
647 while let Some(tag) = is.read_raw_tag_or_eof()? {
648 match tag {
649 8 => {
650 self.world_x = ::std::option::Option::Some(is.read_int32()?);
651 },
652 16 => {
653 self.world_y = ::std::option::Option::Some(is.read_int32()?);
654 },
655 24 => {
656 self.world_z = ::std::option::Option::Some(is.read_sint32()?);
657 },
658 34 => {
659 self.tile_layer.push(is.read_message()?);
660 },
661 40 => {
662 self.current_year = ::std::option::Option::Some(is.read_int32()?);
663 },
664 48 => {
665 self.current_season = ::std::option::Option::Some(is.read_int32()?);
666 },
667 56 => {
668 self.is_valid = ::std::option::Option::Some(is.read_bool()?);
669 },
670 tag => {
671 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
672 },
673 };
674 }
675 ::std::result::Result::Ok(())
676 }
677
678 #[allow(unused_variables)]
680 fn compute_size(&self) -> u64 {
681 let mut my_size = 0;
682 if let Some(v) = self.world_x {
683 my_size += ::protobuf::rt::int32_size(1, v);
684 }
685 if let Some(v) = self.world_y {
686 my_size += ::protobuf::rt::int32_size(2, v);
687 }
688 if let Some(v) = self.world_z {
689 my_size += ::protobuf::rt::sint32_size(3, v);
690 }
691 for value in &self.tile_layer {
692 let len = value.compute_size();
693 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
694 };
695 if let Some(v) = self.current_year {
696 my_size += ::protobuf::rt::int32_size(5, v);
697 }
698 if let Some(v) = self.current_season {
699 my_size += ::protobuf::rt::int32_size(6, v);
700 }
701 if let Some(v) = self.is_valid {
702 my_size += 1 + 1;
703 }
704 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
705 self.special_fields.cached_size().set(my_size as u32);
706 my_size
707 }
708
709 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
710 if let Some(v) = self.world_x {
711 os.write_int32(1, v)?;
712 }
713 if let Some(v) = self.world_y {
714 os.write_int32(2, v)?;
715 }
716 if let Some(v) = self.world_z {
717 os.write_sint32(3, v)?;
718 }
719 for v in &self.tile_layer {
720 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
721 };
722 if let Some(v) = self.current_year {
723 os.write_int32(5, v)?;
724 }
725 if let Some(v) = self.current_season {
726 os.write_int32(6, v)?;
727 }
728 if let Some(v) = self.is_valid {
729 os.write_bool(7, v)?;
730 }
731 os.write_unknown_fields(self.special_fields.unknown_fields())?;
732 ::std::result::Result::Ok(())
733 }
734
735 fn special_fields(&self) -> &::protobuf::SpecialFields {
736 &self.special_fields
737 }
738
739 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
740 &mut self.special_fields
741 }
742
743 fn new() -> EmbarkTile {
744 EmbarkTile::new()
745 }
746
747 fn clear(&mut self) {
748 self.world_x = ::std::option::Option::None;
749 self.world_y = ::std::option::Option::None;
750 self.world_z = ::std::option::Option::None;
751 self.tile_layer.clear();
752 self.current_year = ::std::option::Option::None;
753 self.current_season = ::std::option::Option::None;
754 self.is_valid = ::std::option::Option::None;
755 self.special_fields.clear();
756 }
757
758 fn default_instance() -> &'static EmbarkTile {
759 static instance: EmbarkTile = EmbarkTile {
760 world_x: ::std::option::Option::None,
761 world_y: ::std::option::Option::None,
762 world_z: ::std::option::Option::None,
763 tile_layer: ::std::vec::Vec::new(),
764 current_year: ::std::option::Option::None,
765 current_season: ::std::option::Option::None,
766 is_valid: ::std::option::Option::None,
767 special_fields: ::protobuf::SpecialFields::new(),
768 };
769 &instance
770 }
771}
772
773impl ::protobuf::MessageFull for EmbarkTile {
774 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
775 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
776 descriptor.get(|| file_descriptor().message_by_package_relative_name("EmbarkTile").unwrap()).clone()
777 }
778}
779
780impl ::std::fmt::Display for EmbarkTile {
781 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
782 ::protobuf::text_format::fmt(self, f)
783 }
784}
785
786impl ::protobuf::reflect::ProtobufValue for EmbarkTile {
787 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
788}
789
790#[derive(PartialEq,Clone,Default,Debug)]
792pub struct TileRequest {
793 pub want_x: ::std::option::Option<i32>,
796 pub want_y: ::std::option::Option<i32>,
798 pub special_fields: ::protobuf::SpecialFields,
801}
802
803impl<'a> ::std::default::Default for &'a TileRequest {
804 fn default() -> &'a TileRequest {
805 <TileRequest as ::protobuf::Message>::default_instance()
806 }
807}
808
809impl TileRequest {
810 pub fn new() -> TileRequest {
811 ::std::default::Default::default()
812 }
813
814 pub fn want_x(&self) -> i32 {
817 self.want_x.unwrap_or(0)
818 }
819
820 pub fn clear_want_x(&mut self) {
821 self.want_x = ::std::option::Option::None;
822 }
823
824 pub fn has_want_x(&self) -> bool {
825 self.want_x.is_some()
826 }
827
828 pub fn set_want_x(&mut self, v: i32) {
830 self.want_x = ::std::option::Option::Some(v);
831 }
832
833 pub fn want_y(&self) -> i32 {
836 self.want_y.unwrap_or(0)
837 }
838
839 pub fn clear_want_y(&mut self) {
840 self.want_y = ::std::option::Option::None;
841 }
842
843 pub fn has_want_y(&self) -> bool {
844 self.want_y.is_some()
845 }
846
847 pub fn set_want_y(&mut self, v: i32) {
849 self.want_y = ::std::option::Option::Some(v);
850 }
851
852 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
853 let mut fields = ::std::vec::Vec::with_capacity(2);
854 let mut oneofs = ::std::vec::Vec::with_capacity(0);
855 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
856 "want_x",
857 |m: &TileRequest| { &m.want_x },
858 |m: &mut TileRequest| { &mut m.want_x },
859 ));
860 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
861 "want_y",
862 |m: &TileRequest| { &m.want_y },
863 |m: &mut TileRequest| { &mut m.want_y },
864 ));
865 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<TileRequest>(
866 "TileRequest",
867 fields,
868 oneofs,
869 )
870 }
871}
872
873impl ::protobuf::Message for TileRequest {
874 const NAME: &'static str = "TileRequest";
875
876 fn is_initialized(&self) -> bool {
877 true
878 }
879
880 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
881 while let Some(tag) = is.read_raw_tag_or_eof()? {
882 match tag {
883 8 => {
884 self.want_x = ::std::option::Option::Some(is.read_int32()?);
885 },
886 16 => {
887 self.want_y = ::std::option::Option::Some(is.read_int32()?);
888 },
889 tag => {
890 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
891 },
892 };
893 }
894 ::std::result::Result::Ok(())
895 }
896
897 #[allow(unused_variables)]
899 fn compute_size(&self) -> u64 {
900 let mut my_size = 0;
901 if let Some(v) = self.want_x {
902 my_size += ::protobuf::rt::int32_size(1, v);
903 }
904 if let Some(v) = self.want_y {
905 my_size += ::protobuf::rt::int32_size(2, v);
906 }
907 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
908 self.special_fields.cached_size().set(my_size as u32);
909 my_size
910 }
911
912 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
913 if let Some(v) = self.want_x {
914 os.write_int32(1, v)?;
915 }
916 if let Some(v) = self.want_y {
917 os.write_int32(2, v)?;
918 }
919 os.write_unknown_fields(self.special_fields.unknown_fields())?;
920 ::std::result::Result::Ok(())
921 }
922
923 fn special_fields(&self) -> &::protobuf::SpecialFields {
924 &self.special_fields
925 }
926
927 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
928 &mut self.special_fields
929 }
930
931 fn new() -> TileRequest {
932 TileRequest::new()
933 }
934
935 fn clear(&mut self) {
936 self.want_x = ::std::option::Option::None;
937 self.want_y = ::std::option::Option::None;
938 self.special_fields.clear();
939 }
940
941 fn default_instance() -> &'static TileRequest {
942 static instance: TileRequest = TileRequest {
943 want_x: ::std::option::Option::None,
944 want_y: ::std::option::Option::None,
945 special_fields: ::protobuf::SpecialFields::new(),
946 };
947 &instance
948 }
949}
950
951impl ::protobuf::MessageFull for TileRequest {
952 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
953 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
954 descriptor.get(|| file_descriptor().message_by_package_relative_name("TileRequest").unwrap()).clone()
955 }
956}
957
958impl ::std::fmt::Display for TileRequest {
959 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
960 ::protobuf::text_format::fmt(self, f)
961 }
962}
963
964impl ::protobuf::reflect::ProtobufValue for TileRequest {
965 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
966}
967
968#[derive(PartialEq,Clone,Default,Debug)]
970pub struct MapRequest {
971 pub save_folder: ::std::option::Option<::std::string::String>,
974 pub special_fields: ::protobuf::SpecialFields,
977}
978
979impl<'a> ::std::default::Default for &'a MapRequest {
980 fn default() -> &'a MapRequest {
981 <MapRequest as ::protobuf::Message>::default_instance()
982 }
983}
984
985impl MapRequest {
986 pub fn new() -> MapRequest {
987 ::std::default::Default::default()
988 }
989
990 pub fn save_folder(&self) -> &str {
993 match self.save_folder.as_ref() {
994 Some(v) => v,
995 None => "",
996 }
997 }
998
999 pub fn clear_save_folder(&mut self) {
1000 self.save_folder = ::std::option::Option::None;
1001 }
1002
1003 pub fn has_save_folder(&self) -> bool {
1004 self.save_folder.is_some()
1005 }
1006
1007 pub fn set_save_folder(&mut self, v: ::std::string::String) {
1009 self.save_folder = ::std::option::Option::Some(v);
1010 }
1011
1012 pub fn mut_save_folder(&mut self) -> &mut ::std::string::String {
1015 if self.save_folder.is_none() {
1016 self.save_folder = ::std::option::Option::Some(::std::string::String::new());
1017 }
1018 self.save_folder.as_mut().unwrap()
1019 }
1020
1021 pub fn take_save_folder(&mut self) -> ::std::string::String {
1023 self.save_folder.take().unwrap_or_else(|| ::std::string::String::new())
1024 }
1025
1026 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1027 let mut fields = ::std::vec::Vec::with_capacity(1);
1028 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1029 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1030 "save_folder",
1031 |m: &MapRequest| { &m.save_folder },
1032 |m: &mut MapRequest| { &mut m.save_folder },
1033 ));
1034 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<MapRequest>(
1035 "MapRequest",
1036 fields,
1037 oneofs,
1038 )
1039 }
1040}
1041
1042impl ::protobuf::Message for MapRequest {
1043 const NAME: &'static str = "MapRequest";
1044
1045 fn is_initialized(&self) -> bool {
1046 true
1047 }
1048
1049 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1050 while let Some(tag) = is.read_raw_tag_or_eof()? {
1051 match tag {
1052 10 => {
1053 self.save_folder = ::std::option::Option::Some(is.read_string()?);
1054 },
1055 tag => {
1056 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1057 },
1058 };
1059 }
1060 ::std::result::Result::Ok(())
1061 }
1062
1063 #[allow(unused_variables)]
1065 fn compute_size(&self) -> u64 {
1066 let mut my_size = 0;
1067 if let Some(v) = self.save_folder.as_ref() {
1068 my_size += ::protobuf::rt::string_size(1, &v);
1069 }
1070 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1071 self.special_fields.cached_size().set(my_size as u32);
1072 my_size
1073 }
1074
1075 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1076 if let Some(v) = self.save_folder.as_ref() {
1077 os.write_string(1, v)?;
1078 }
1079 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1080 ::std::result::Result::Ok(())
1081 }
1082
1083 fn special_fields(&self) -> &::protobuf::SpecialFields {
1084 &self.special_fields
1085 }
1086
1087 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1088 &mut self.special_fields
1089 }
1090
1091 fn new() -> MapRequest {
1092 MapRequest::new()
1093 }
1094
1095 fn clear(&mut self) {
1096 self.save_folder = ::std::option::Option::None;
1097 self.special_fields.clear();
1098 }
1099
1100 fn default_instance() -> &'static MapRequest {
1101 static instance: MapRequest = MapRequest {
1102 save_folder: ::std::option::Option::None,
1103 special_fields: ::protobuf::SpecialFields::new(),
1104 };
1105 &instance
1106 }
1107}
1108
1109impl ::protobuf::MessageFull for MapRequest {
1110 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1111 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1112 descriptor.get(|| file_descriptor().message_by_package_relative_name("MapRequest").unwrap()).clone()
1113 }
1114}
1115
1116impl ::std::fmt::Display for MapRequest {
1117 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1118 ::protobuf::text_format::fmt(self, f)
1119 }
1120}
1121
1122impl ::protobuf::reflect::ProtobufValue for MapRequest {
1123 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1124}
1125
1126#[derive(PartialEq,Clone,Default,Debug)]
1128pub struct MapReply {
1129 pub available: ::std::option::Option<bool>,
1132 pub region_x: ::std::option::Option<i32>,
1134 pub region_y: ::std::option::Option<i32>,
1136 pub region_size_x: ::std::option::Option<i32>,
1138 pub region_size_y: ::std::option::Option<i32>,
1140 pub current_year: ::std::option::Option<i32>,
1142 pub current_season: ::std::option::Option<i32>,
1144 pub special_fields: ::protobuf::SpecialFields,
1147}
1148
1149impl<'a> ::std::default::Default for &'a MapReply {
1150 fn default() -> &'a MapReply {
1151 <MapReply as ::protobuf::Message>::default_instance()
1152 }
1153}
1154
1155impl MapReply {
1156 pub fn new() -> MapReply {
1157 ::std::default::Default::default()
1158 }
1159
1160 pub fn available(&self) -> bool {
1163 self.available.unwrap_or(false)
1164 }
1165
1166 pub fn clear_available(&mut self) {
1167 self.available = ::std::option::Option::None;
1168 }
1169
1170 pub fn has_available(&self) -> bool {
1171 self.available.is_some()
1172 }
1173
1174 pub fn set_available(&mut self, v: bool) {
1176 self.available = ::std::option::Option::Some(v);
1177 }
1178
1179 pub fn region_x(&self) -> i32 {
1182 self.region_x.unwrap_or(0)
1183 }
1184
1185 pub fn clear_region_x(&mut self) {
1186 self.region_x = ::std::option::Option::None;
1187 }
1188
1189 pub fn has_region_x(&self) -> bool {
1190 self.region_x.is_some()
1191 }
1192
1193 pub fn set_region_x(&mut self, v: i32) {
1195 self.region_x = ::std::option::Option::Some(v);
1196 }
1197
1198 pub fn region_y(&self) -> i32 {
1201 self.region_y.unwrap_or(0)
1202 }
1203
1204 pub fn clear_region_y(&mut self) {
1205 self.region_y = ::std::option::Option::None;
1206 }
1207
1208 pub fn has_region_y(&self) -> bool {
1209 self.region_y.is_some()
1210 }
1211
1212 pub fn set_region_y(&mut self, v: i32) {
1214 self.region_y = ::std::option::Option::Some(v);
1215 }
1216
1217 pub fn region_size_x(&self) -> i32 {
1220 self.region_size_x.unwrap_or(0)
1221 }
1222
1223 pub fn clear_region_size_x(&mut self) {
1224 self.region_size_x = ::std::option::Option::None;
1225 }
1226
1227 pub fn has_region_size_x(&self) -> bool {
1228 self.region_size_x.is_some()
1229 }
1230
1231 pub fn set_region_size_x(&mut self, v: i32) {
1233 self.region_size_x = ::std::option::Option::Some(v);
1234 }
1235
1236 pub fn region_size_y(&self) -> i32 {
1239 self.region_size_y.unwrap_or(0)
1240 }
1241
1242 pub fn clear_region_size_y(&mut self) {
1243 self.region_size_y = ::std::option::Option::None;
1244 }
1245
1246 pub fn has_region_size_y(&self) -> bool {
1247 self.region_size_y.is_some()
1248 }
1249
1250 pub fn set_region_size_y(&mut self, v: i32) {
1252 self.region_size_y = ::std::option::Option::Some(v);
1253 }
1254
1255 pub fn current_year(&self) -> i32 {
1258 self.current_year.unwrap_or(0)
1259 }
1260
1261 pub fn clear_current_year(&mut self) {
1262 self.current_year = ::std::option::Option::None;
1263 }
1264
1265 pub fn has_current_year(&self) -> bool {
1266 self.current_year.is_some()
1267 }
1268
1269 pub fn set_current_year(&mut self, v: i32) {
1271 self.current_year = ::std::option::Option::Some(v);
1272 }
1273
1274 pub fn current_season(&self) -> i32 {
1277 self.current_season.unwrap_or(0)
1278 }
1279
1280 pub fn clear_current_season(&mut self) {
1281 self.current_season = ::std::option::Option::None;
1282 }
1283
1284 pub fn has_current_season(&self) -> bool {
1285 self.current_season.is_some()
1286 }
1287
1288 pub fn set_current_season(&mut self, v: i32) {
1290 self.current_season = ::std::option::Option::Some(v);
1291 }
1292
1293 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1294 let mut fields = ::std::vec::Vec::with_capacity(7);
1295 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1296 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1297 "available",
1298 |m: &MapReply| { &m.available },
1299 |m: &mut MapReply| { &mut m.available },
1300 ));
1301 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1302 "region_x",
1303 |m: &MapReply| { &m.region_x },
1304 |m: &mut MapReply| { &mut m.region_x },
1305 ));
1306 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1307 "region_y",
1308 |m: &MapReply| { &m.region_y },
1309 |m: &mut MapReply| { &mut m.region_y },
1310 ));
1311 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1312 "region_size_x",
1313 |m: &MapReply| { &m.region_size_x },
1314 |m: &mut MapReply| { &mut m.region_size_x },
1315 ));
1316 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1317 "region_size_y",
1318 |m: &MapReply| { &m.region_size_y },
1319 |m: &mut MapReply| { &mut m.region_size_y },
1320 ));
1321 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1322 "current_year",
1323 |m: &MapReply| { &m.current_year },
1324 |m: &mut MapReply| { &mut m.current_year },
1325 ));
1326 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1327 "current_season",
1328 |m: &MapReply| { &m.current_season },
1329 |m: &mut MapReply| { &mut m.current_season },
1330 ));
1331 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<MapReply>(
1332 "MapReply",
1333 fields,
1334 oneofs,
1335 )
1336 }
1337}
1338
1339impl ::protobuf::Message for MapReply {
1340 const NAME: &'static str = "MapReply";
1341
1342 fn is_initialized(&self) -> bool {
1343 if self.available.is_none() {
1344 return false;
1345 }
1346 true
1347 }
1348
1349 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1350 while let Some(tag) = is.read_raw_tag_or_eof()? {
1351 match tag {
1352 8 => {
1353 self.available = ::std::option::Option::Some(is.read_bool()?);
1354 },
1355 16 => {
1356 self.region_x = ::std::option::Option::Some(is.read_int32()?);
1357 },
1358 24 => {
1359 self.region_y = ::std::option::Option::Some(is.read_int32()?);
1360 },
1361 32 => {
1362 self.region_size_x = ::std::option::Option::Some(is.read_int32()?);
1363 },
1364 40 => {
1365 self.region_size_y = ::std::option::Option::Some(is.read_int32()?);
1366 },
1367 48 => {
1368 self.current_year = ::std::option::Option::Some(is.read_int32()?);
1369 },
1370 56 => {
1371 self.current_season = ::std::option::Option::Some(is.read_int32()?);
1372 },
1373 tag => {
1374 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1375 },
1376 };
1377 }
1378 ::std::result::Result::Ok(())
1379 }
1380
1381 #[allow(unused_variables)]
1383 fn compute_size(&self) -> u64 {
1384 let mut my_size = 0;
1385 if let Some(v) = self.available {
1386 my_size += 1 + 1;
1387 }
1388 if let Some(v) = self.region_x {
1389 my_size += ::protobuf::rt::int32_size(2, v);
1390 }
1391 if let Some(v) = self.region_y {
1392 my_size += ::protobuf::rt::int32_size(3, v);
1393 }
1394 if let Some(v) = self.region_size_x {
1395 my_size += ::protobuf::rt::int32_size(4, v);
1396 }
1397 if let Some(v) = self.region_size_y {
1398 my_size += ::protobuf::rt::int32_size(5, v);
1399 }
1400 if let Some(v) = self.current_year {
1401 my_size += ::protobuf::rt::int32_size(6, v);
1402 }
1403 if let Some(v) = self.current_season {
1404 my_size += ::protobuf::rt::int32_size(7, v);
1405 }
1406 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1407 self.special_fields.cached_size().set(my_size as u32);
1408 my_size
1409 }
1410
1411 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1412 if let Some(v) = self.available {
1413 os.write_bool(1, v)?;
1414 }
1415 if let Some(v) = self.region_x {
1416 os.write_int32(2, v)?;
1417 }
1418 if let Some(v) = self.region_y {
1419 os.write_int32(3, v)?;
1420 }
1421 if let Some(v) = self.region_size_x {
1422 os.write_int32(4, v)?;
1423 }
1424 if let Some(v) = self.region_size_y {
1425 os.write_int32(5, v)?;
1426 }
1427 if let Some(v) = self.current_year {
1428 os.write_int32(6, v)?;
1429 }
1430 if let Some(v) = self.current_season {
1431 os.write_int32(7, v)?;
1432 }
1433 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1434 ::std::result::Result::Ok(())
1435 }
1436
1437 fn special_fields(&self) -> &::protobuf::SpecialFields {
1438 &self.special_fields
1439 }
1440
1441 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1442 &mut self.special_fields
1443 }
1444
1445 fn new() -> MapReply {
1446 MapReply::new()
1447 }
1448
1449 fn clear(&mut self) {
1450 self.available = ::std::option::Option::None;
1451 self.region_x = ::std::option::Option::None;
1452 self.region_y = ::std::option::Option::None;
1453 self.region_size_x = ::std::option::Option::None;
1454 self.region_size_y = ::std::option::Option::None;
1455 self.current_year = ::std::option::Option::None;
1456 self.current_season = ::std::option::Option::None;
1457 self.special_fields.clear();
1458 }
1459
1460 fn default_instance() -> &'static MapReply {
1461 static instance: MapReply = MapReply {
1462 available: ::std::option::Option::None,
1463 region_x: ::std::option::Option::None,
1464 region_y: ::std::option::Option::None,
1465 region_size_x: ::std::option::Option::None,
1466 region_size_y: ::std::option::Option::None,
1467 current_year: ::std::option::Option::None,
1468 current_season: ::std::option::Option::None,
1469 special_fields: ::protobuf::SpecialFields::new(),
1470 };
1471 &instance
1472 }
1473}
1474
1475impl ::protobuf::MessageFull for MapReply {
1476 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1477 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1478 descriptor.get(|| file_descriptor().message_by_package_relative_name("MapReply").unwrap()).clone()
1479 }
1480}
1481
1482impl ::std::fmt::Display for MapReply {
1483 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1484 ::protobuf::text_format::fmt(self, f)
1485 }
1486}
1487
1488impl ::protobuf::reflect::ProtobufValue for MapReply {
1489 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1490}
1491
1492#[derive(PartialEq,Clone,Default,Debug)]
1494pub struct RawNames {
1495 pub available: ::std::option::Option<bool>,
1498 pub inorganic: ::std::vec::Vec<::std::string::String>,
1500 pub organic: ::std::vec::Vec<::std::string::String>,
1502 pub special_fields: ::protobuf::SpecialFields,
1505}
1506
1507impl<'a> ::std::default::Default for &'a RawNames {
1508 fn default() -> &'a RawNames {
1509 <RawNames as ::protobuf::Message>::default_instance()
1510 }
1511}
1512
1513impl RawNames {
1514 pub fn new() -> RawNames {
1515 ::std::default::Default::default()
1516 }
1517
1518 pub fn available(&self) -> bool {
1521 self.available.unwrap_or(false)
1522 }
1523
1524 pub fn clear_available(&mut self) {
1525 self.available = ::std::option::Option::None;
1526 }
1527
1528 pub fn has_available(&self) -> bool {
1529 self.available.is_some()
1530 }
1531
1532 pub fn set_available(&mut self, v: bool) {
1534 self.available = ::std::option::Option::Some(v);
1535 }
1536
1537 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1538 let mut fields = ::std::vec::Vec::with_capacity(3);
1539 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1540 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1541 "available",
1542 |m: &RawNames| { &m.available },
1543 |m: &mut RawNames| { &mut m.available },
1544 ));
1545 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1546 "inorganic",
1547 |m: &RawNames| { &m.inorganic },
1548 |m: &mut RawNames| { &mut m.inorganic },
1549 ));
1550 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1551 "organic",
1552 |m: &RawNames| { &m.organic },
1553 |m: &mut RawNames| { &mut m.organic },
1554 ));
1555 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<RawNames>(
1556 "RawNames",
1557 fields,
1558 oneofs,
1559 )
1560 }
1561}
1562
1563impl ::protobuf::Message for RawNames {
1564 const NAME: &'static str = "RawNames";
1565
1566 fn is_initialized(&self) -> bool {
1567 if self.available.is_none() {
1568 return false;
1569 }
1570 true
1571 }
1572
1573 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1574 while let Some(tag) = is.read_raw_tag_or_eof()? {
1575 match tag {
1576 8 => {
1577 self.available = ::std::option::Option::Some(is.read_bool()?);
1578 },
1579 18 => {
1580 self.inorganic.push(is.read_string()?);
1581 },
1582 26 => {
1583 self.organic.push(is.read_string()?);
1584 },
1585 tag => {
1586 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1587 },
1588 };
1589 }
1590 ::std::result::Result::Ok(())
1591 }
1592
1593 #[allow(unused_variables)]
1595 fn compute_size(&self) -> u64 {
1596 let mut my_size = 0;
1597 if let Some(v) = self.available {
1598 my_size += 1 + 1;
1599 }
1600 for value in &self.inorganic {
1601 my_size += ::protobuf::rt::string_size(2, &value);
1602 };
1603 for value in &self.organic {
1604 my_size += ::protobuf::rt::string_size(3, &value);
1605 };
1606 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1607 self.special_fields.cached_size().set(my_size as u32);
1608 my_size
1609 }
1610
1611 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1612 if let Some(v) = self.available {
1613 os.write_bool(1, v)?;
1614 }
1615 for v in &self.inorganic {
1616 os.write_string(2, &v)?;
1617 };
1618 for v in &self.organic {
1619 os.write_string(3, &v)?;
1620 };
1621 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1622 ::std::result::Result::Ok(())
1623 }
1624
1625 fn special_fields(&self) -> &::protobuf::SpecialFields {
1626 &self.special_fields
1627 }
1628
1629 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1630 &mut self.special_fields
1631 }
1632
1633 fn new() -> RawNames {
1634 RawNames::new()
1635 }
1636
1637 fn clear(&mut self) {
1638 self.available = ::std::option::Option::None;
1639 self.inorganic.clear();
1640 self.organic.clear();
1641 self.special_fields.clear();
1642 }
1643
1644 fn default_instance() -> &'static RawNames {
1645 static instance: RawNames = RawNames {
1646 available: ::std::option::Option::None,
1647 inorganic: ::std::vec::Vec::new(),
1648 organic: ::std::vec::Vec::new(),
1649 special_fields: ::protobuf::SpecialFields::new(),
1650 };
1651 &instance
1652 }
1653}
1654
1655impl ::protobuf::MessageFull for RawNames {
1656 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1657 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1658 descriptor.get(|| file_descriptor().message_by_package_relative_name("RawNames").unwrap()).clone()
1659 }
1660}
1661
1662impl ::std::fmt::Display for RawNames {
1663 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1664 ::protobuf::text_format::fmt(self, f)
1665 }
1666}
1667
1668impl ::protobuf::reflect::ProtobufValue for RawNames {
1669 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1670}
1671
1672#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1673pub enum BasicMaterial {
1675 AIR = 0,
1677 OTHER = 1,
1679 INORGANIC = 2,
1681 LIQUID = 3,
1683 PLANT = 4,
1685 WOOD = 5,
1687}
1688
1689impl ::protobuf::Enum for BasicMaterial {
1690 const NAME: &'static str = "BasicMaterial";
1691
1692 fn value(&self) -> i32 {
1693 *self as i32
1694 }
1695
1696 fn from_i32(value: i32) -> ::std::option::Option<BasicMaterial> {
1697 match value {
1698 0 => ::std::option::Option::Some(BasicMaterial::AIR),
1699 1 => ::std::option::Option::Some(BasicMaterial::OTHER),
1700 2 => ::std::option::Option::Some(BasicMaterial::INORGANIC),
1701 3 => ::std::option::Option::Some(BasicMaterial::LIQUID),
1702 4 => ::std::option::Option::Some(BasicMaterial::PLANT),
1703 5 => ::std::option::Option::Some(BasicMaterial::WOOD),
1704 _ => ::std::option::Option::None
1705 }
1706 }
1707
1708 fn from_str(str: &str) -> ::std::option::Option<BasicMaterial> {
1709 match str {
1710 "AIR" => ::std::option::Option::Some(BasicMaterial::AIR),
1711 "OTHER" => ::std::option::Option::Some(BasicMaterial::OTHER),
1712 "INORGANIC" => ::std::option::Option::Some(BasicMaterial::INORGANIC),
1713 "LIQUID" => ::std::option::Option::Some(BasicMaterial::LIQUID),
1714 "PLANT" => ::std::option::Option::Some(BasicMaterial::PLANT),
1715 "WOOD" => ::std::option::Option::Some(BasicMaterial::WOOD),
1716 _ => ::std::option::Option::None
1717 }
1718 }
1719
1720 const VALUES: &'static [BasicMaterial] = &[
1721 BasicMaterial::AIR,
1722 BasicMaterial::OTHER,
1723 BasicMaterial::INORGANIC,
1724 BasicMaterial::LIQUID,
1725 BasicMaterial::PLANT,
1726 BasicMaterial::WOOD,
1727 ];
1728}
1729
1730impl ::protobuf::EnumFull for BasicMaterial {
1731 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1732 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1733 descriptor.get(|| file_descriptor().enum_by_package_relative_name("BasicMaterial").unwrap()).clone()
1734 }
1735
1736 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1737 let index = *self as usize;
1738 Self::enum_descriptor().value_by_index(index)
1739 }
1740}
1741
1742impl ::std::default::Default for BasicMaterial {
1743 fn default() -> Self {
1744 BasicMaterial::AIR
1745 }
1746}
1747
1748impl BasicMaterial {
1749 fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1750 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<BasicMaterial>("BasicMaterial")
1751 }
1752}
1753
1754#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1755pub enum LiquidType {
1757 ICE = 0,
1759 WATER = 1,
1761 MAGMA = 2,
1763}
1764
1765impl ::protobuf::Enum for LiquidType {
1766 const NAME: &'static str = "LiquidType";
1767
1768 fn value(&self) -> i32 {
1769 *self as i32
1770 }
1771
1772 fn from_i32(value: i32) -> ::std::option::Option<LiquidType> {
1773 match value {
1774 0 => ::std::option::Option::Some(LiquidType::ICE),
1775 1 => ::std::option::Option::Some(LiquidType::WATER),
1776 2 => ::std::option::Option::Some(LiquidType::MAGMA),
1777 _ => ::std::option::Option::None
1778 }
1779 }
1780
1781 fn from_str(str: &str) -> ::std::option::Option<LiquidType> {
1782 match str {
1783 "ICE" => ::std::option::Option::Some(LiquidType::ICE),
1784 "WATER" => ::std::option::Option::Some(LiquidType::WATER),
1785 "MAGMA" => ::std::option::Option::Some(LiquidType::MAGMA),
1786 _ => ::std::option::Option::None
1787 }
1788 }
1789
1790 const VALUES: &'static [LiquidType] = &[
1791 LiquidType::ICE,
1792 LiquidType::WATER,
1793 LiquidType::MAGMA,
1794 ];
1795}
1796
1797impl ::protobuf::EnumFull for LiquidType {
1798 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1799 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1800 descriptor.get(|| file_descriptor().enum_by_package_relative_name("LiquidType").unwrap()).clone()
1801 }
1802
1803 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1804 let index = *self as usize;
1805 Self::enum_descriptor().value_by_index(index)
1806 }
1807}
1808
1809impl ::std::default::Default for LiquidType {
1810 fn default() -> Self {
1811 LiquidType::ICE
1812 }
1813}
1814
1815impl LiquidType {
1816 fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1817 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<LiquidType>("LiquidType")
1818 }
1819}
1820
1821#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1822pub enum BasicShape {
1824 NONE = 0,
1826 OPEN = 1,
1828 WALL = 3,
1830 FLOOR = 4,
1832 RAMP_UP = 5,
1834 RAMP_DOWN = 6,
1836}
1837
1838impl ::protobuf::Enum for BasicShape {
1839 const NAME: &'static str = "BasicShape";
1840
1841 fn value(&self) -> i32 {
1842 *self as i32
1843 }
1844
1845 fn from_i32(value: i32) -> ::std::option::Option<BasicShape> {
1846 match value {
1847 0 => ::std::option::Option::Some(BasicShape::NONE),
1848 1 => ::std::option::Option::Some(BasicShape::OPEN),
1849 3 => ::std::option::Option::Some(BasicShape::WALL),
1850 4 => ::std::option::Option::Some(BasicShape::FLOOR),
1851 5 => ::std::option::Option::Some(BasicShape::RAMP_UP),
1852 6 => ::std::option::Option::Some(BasicShape::RAMP_DOWN),
1853 _ => ::std::option::Option::None
1854 }
1855 }
1856
1857 fn from_str(str: &str) -> ::std::option::Option<BasicShape> {
1858 match str {
1859 "NONE" => ::std::option::Option::Some(BasicShape::NONE),
1860 "OPEN" => ::std::option::Option::Some(BasicShape::OPEN),
1861 "WALL" => ::std::option::Option::Some(BasicShape::WALL),
1862 "FLOOR" => ::std::option::Option::Some(BasicShape::FLOOR),
1863 "RAMP_UP" => ::std::option::Option::Some(BasicShape::RAMP_UP),
1864 "RAMP_DOWN" => ::std::option::Option::Some(BasicShape::RAMP_DOWN),
1865 _ => ::std::option::Option::None
1866 }
1867 }
1868
1869 const VALUES: &'static [BasicShape] = &[
1870 BasicShape::NONE,
1871 BasicShape::OPEN,
1872 BasicShape::WALL,
1873 BasicShape::FLOOR,
1874 BasicShape::RAMP_UP,
1875 BasicShape::RAMP_DOWN,
1876 ];
1877}
1878
1879impl ::protobuf::EnumFull for BasicShape {
1880 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1881 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1882 descriptor.get(|| file_descriptor().enum_by_package_relative_name("BasicShape").unwrap()).clone()
1883 }
1884
1885 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1886 let index = match self {
1887 BasicShape::NONE => 0,
1888 BasicShape::OPEN => 1,
1889 BasicShape::WALL => 2,
1890 BasicShape::FLOOR => 3,
1891 BasicShape::RAMP_UP => 4,
1892 BasicShape::RAMP_DOWN => 5,
1893 };
1894 Self::enum_descriptor().value_by_index(index)
1895 }
1896}
1897
1898impl ::std::default::Default for BasicShape {
1899 fn default() -> Self {
1900 BasicShape::NONE
1901 }
1902}
1903
1904impl BasicShape {
1905 fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1906 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<BasicShape>("BasicShape")
1907 }
1908}
1909
1910static file_descriptor_proto_data: &'static [u8] = b"\
1911 \n\x14isoworldremote.proto\x12\x0eisoworldremote\"M\n\x0fColorDefinition\
1912 \x12\x10\n\x03red\x18\x01\x20\x02(\x05R\x03red\x12\x14\n\x05green\x18\
1913 \x02\x20\x02(\x05R\x05green\x12\x12\n\x04blue\x18\x03\x20\x02(\x05R\x04b\
1914 lue\"\x9f\x02\n\x0fEmbarkTileLayer\x12G\n\x0emat_type_table\x18\x04\x20\
1915 \x03(\x0e2\x1d.isoworldremote.BasicMaterialR\x0cmatTypeTableB\x02\x10\
1916 \x01\x12.\n\x11mat_subtype_table\x18\x05\x20\x03(\x05R\x0fmatSubtypeTabl\
1917 eB\x02\x10\x01\x12H\n\x10tile_shape_table\x18\x06\x20\x03(\x0e2\x1a.isow\
1918 orldremote.BasicShapeR\x0etileShapeTableB\x02\x10\x01\x12I\n\x10tile_col\
1919 or_table\x18\x07\x20\x03(\x0b2\x1f.isoworldremote.ColorDefinitionR\x0eti\
1920 leColorTable\"\xfc\x01\n\nEmbarkTile\x12\x17\n\x07world_x\x18\x01\x20\
1921 \x02(\x05R\x06worldX\x12\x17\n\x07world_y\x18\x02\x20\x02(\x05R\x06world\
1922 Y\x12\x17\n\x07world_z\x18\x03\x20\x02(\x11R\x06worldZ\x12>\n\ntile_laye\
1923 r\x18\x04\x20\x03(\x0b2\x1f.isoworldremote.EmbarkTileLayerR\ttileLayer\
1924 \x12!\n\x0ccurrent_year\x18\x05\x20\x01(\x05R\x0bcurrentYear\x12%\n\x0ec\
1925 urrent_season\x18\x06\x20\x01(\x05R\rcurrentSeason\x12\x19\n\x08is_valid\
1926 \x18\x07\x20\x01(\x08R\x07isValid\";\n\x0bTileRequest\x12\x15\n\x06want_\
1927 x\x18\x01\x20\x01(\x05R\x05wantX\x12\x15\n\x06want_y\x18\x02\x20\x01(\
1928 \x05R\x05wantY\"-\n\nMapRequest\x12\x1f\n\x0bsave_folder\x18\x01\x20\x01\
1929 (\tR\nsaveFolder\"\xf0\x01\n\x08MapReply\x12\x1c\n\tavailable\x18\x01\
1930 \x20\x02(\x08R\tavailable\x12\x19\n\x08region_x\x18\x02\x20\x01(\x05R\
1931 \x07regionX\x12\x19\n\x08region_y\x18\x03\x20\x01(\x05R\x07regionY\x12\"\
1932 \n\rregion_size_x\x18\x04\x20\x01(\x05R\x0bregionSizeX\x12\"\n\rregion_s\
1933 ize_y\x18\x05\x20\x01(\x05R\x0bregionSizeY\x12!\n\x0ccurrent_year\x18\
1934 \x06\x20\x01(\x05R\x0bcurrentYear\x12%\n\x0ecurrent_season\x18\x07\x20\
1935 \x01(\x05R\rcurrentSeason\"`\n\x08RawNames\x12\x1c\n\tavailable\x18\x01\
1936 \x20\x02(\x08R\tavailable\x12\x1c\n\tinorganic\x18\x02\x20\x03(\tR\tinor\
1937 ganic\x12\x18\n\x07organic\x18\x03\x20\x03(\tR\x07organic*S\n\rBasicMate\
1938 rial\x12\x07\n\x03AIR\x10\0\x12\t\n\x05OTHER\x10\x01\x12\r\n\tINORGANIC\
1939 \x10\x02\x12\n\n\x06LIQUID\x10\x03\x12\t\n\x05PLANT\x10\x04\x12\x08\n\
1940 \x04WOOD\x10\x05*+\n\nLiquidType\x12\x07\n\x03ICE\x10\0\x12\t\n\x05WATER\
1941 \x10\x01\x12\t\n\x05MAGMA\x10\x02*Q\n\nBasicShape\x12\x08\n\x04NONE\x10\
1942 \0\x12\x08\n\x04OPEN\x10\x01\x12\x08\n\x04WALL\x10\x03\x12\t\n\x05FLOOR\
1943 \x10\x04\x12\x0b\n\x07RAMP_UP\x10\x05\x12\r\n\tRAMP_DOWN\x10\x06B\x02H\
1944 \x03b\x06proto2\
1945";
1946
1947fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1949 static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
1950 file_descriptor_proto_lazy.get(|| {
1951 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1952 })
1953}
1954
1955pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
1957 static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
1958 static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
1959 file_descriptor.get(|| {
1960 let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
1961 let mut deps = ::std::vec::Vec::with_capacity(0);
1962 let mut messages = ::std::vec::Vec::with_capacity(7);
1963 messages.push(ColorDefinition::generated_message_descriptor_data());
1964 messages.push(EmbarkTileLayer::generated_message_descriptor_data());
1965 messages.push(EmbarkTile::generated_message_descriptor_data());
1966 messages.push(TileRequest::generated_message_descriptor_data());
1967 messages.push(MapRequest::generated_message_descriptor_data());
1968 messages.push(MapReply::generated_message_descriptor_data());
1969 messages.push(RawNames::generated_message_descriptor_data());
1970 let mut enums = ::std::vec::Vec::with_capacity(3);
1971 enums.push(BasicMaterial::generated_enum_descriptor_data());
1972 enums.push(LiquidType::generated_enum_descriptor_data());
1973 enums.push(BasicShape::generated_enum_descriptor_data());
1974 ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
1975 file_descriptor_proto(),
1976 deps,
1977 messages,
1978 enums,
1979 )
1980 });
1981 ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
1982 })
1983}