1use crate::messages::*;
2#[cfg(feature = "reflection")]
3use protobuf::MessageFull;
4pub struct Stubs<TChannel: crate::Channel> {
6 channel: TChannel,
7}
8impl<TChannel: crate::Channel> From<TChannel> for Stubs<TChannel> {
9 fn from(channel: TChannel) -> Self {
11 Self { channel }
12 }
13}
14impl<TChannel: crate::Channel> Stubs<TChannel> {
15 pub fn core(&mut self) -> crate::stubs::Core<TChannel> {
17 crate::stubs::Core::new(&mut self.channel)
18 }
19 pub fn remote_fortress_reader(
21 &mut self,
22 ) -> crate::stubs::RemoteFortressReader<TChannel> {
23 crate::stubs::RemoteFortressReader::new(&mut self.channel)
24 }
25 pub fn isoworldremote(&mut self) -> crate::stubs::Isoworldremote<TChannel> {
27 crate::stubs::Isoworldremote::new(&mut self.channel)
28 }
29 pub fn rename(&mut self) -> crate::stubs::Rename<TChannel> {
31 crate::stubs::Rename::new(&mut self.channel)
32 }
33}
34#[cfg(feature = "reflection")]
35impl<TChannel: crate::Channel> crate::reflection::StubReflection for Stubs<TChannel> {
36 fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
37 let mut methods = Vec::new();
38 methods.extend(Core::<TChannel>::list_methods());
39 methods.extend(Core::<TChannel>::list_methods());
40 methods.extend(Core::<TChannel>::list_methods());
41 methods.extend(Core::<TChannel>::list_methods());
42 methods
43 }
44}
45pub struct Core<'a, TChannel: crate::Channel> {
47 pub channel: &'a mut TChannel,
49}
50impl<'a, TChannel: crate::Channel> Core<'a, TChannel> {
51 pub fn new(channel: &'a mut TChannel) -> Self {
53 Self { channel }
54 }
55 pub fn bind_method(
57 &mut self,
58 request: CoreBindRequest,
59 ) -> Result<CoreBindReply, TChannel::TError> {
60 let _response: CoreBindReply = self
61 .channel
62 .request("".to_string(), "BindMethod".to_string(), request)?;
63 Ok(_response)
64 }
65 pub fn core_resume(&mut self) -> Result<i32, TChannel::TError> {
67 let request = EmptyMessage::new();
68 let _response: IntMessage = self
69 .channel
70 .request("".to_string(), "CoreResume".to_string(), request)?;
71 let _response = _response.value();
72 Ok(_response)
73 }
74 pub fn core_suspend(&mut self) -> Result<i32, TChannel::TError> {
76 let request = EmptyMessage::new();
77 let _response: IntMessage = self
78 .channel
79 .request("".to_string(), "CoreSuspend".to_string(), request)?;
80 let _response = _response.value();
81 Ok(_response)
82 }
83 pub fn get_df_version(&mut self) -> Result<String, TChannel::TError> {
85 let request = EmptyMessage::new();
86 let _response: StringMessage = self
87 .channel
88 .request("".to_string(), "GetDFVersion".to_string(), request)?;
89 let _response = _response.value().to_string();
90 Ok(_response)
91 }
92 pub fn get_version(&mut self) -> Result<String, TChannel::TError> {
94 let request = EmptyMessage::new();
95 let _response: StringMessage = self
96 .channel
97 .request("".to_string(), "GetVersion".to_string(), request)?;
98 let _response = _response.value().to_string();
99 Ok(_response)
100 }
101 pub fn get_world_info(&mut self) -> Result<GetWorldInfoOut, TChannel::TError> {
103 let request = EmptyMessage::new();
104 let _response: GetWorldInfoOut = self
105 .channel
106 .request("".to_string(), "GetWorldInfo".to_string(), request)?;
107 Ok(_response)
108 }
109 pub fn list_enums(&mut self) -> Result<ListEnumsOut, TChannel::TError> {
111 let request = EmptyMessage::new();
112 let _response: ListEnumsOut = self
113 .channel
114 .request("".to_string(), "ListEnums".to_string(), request)?;
115 Ok(_response)
116 }
117 pub fn list_job_skills(&mut self) -> Result<ListJobSkillsOut, TChannel::TError> {
119 let request = EmptyMessage::new();
120 let _response: ListJobSkillsOut = self
121 .channel
122 .request("".to_string(), "ListJobSkills".to_string(), request)?;
123 Ok(_response)
124 }
125 pub fn list_materials(
127 &mut self,
128 request: ListMaterialsIn,
129 ) -> Result<ListMaterialsOut, TChannel::TError> {
130 let _response: ListMaterialsOut = self
131 .channel
132 .request("".to_string(), "ListMaterials".to_string(), request)?;
133 Ok(_response)
134 }
135 pub fn list_squads(
137 &mut self,
138 request: ListSquadsIn,
139 ) -> Result<ListSquadsOut, TChannel::TError> {
140 let _response: ListSquadsOut = self
141 .channel
142 .request("".to_string(), "ListSquads".to_string(), request)?;
143 Ok(_response)
144 }
145 pub fn list_units(
147 &mut self,
148 request: ListUnitsIn,
149 ) -> Result<ListUnitsOut, TChannel::TError> {
150 let _response: ListUnitsOut = self
151 .channel
152 .request("".to_string(), "ListUnits".to_string(), request)?;
153 Ok(_response)
154 }
155 pub fn run_command(
157 &mut self,
158 request: CoreRunCommandRequest,
159 ) -> Result<(), TChannel::TError> {
160 let _response: EmptyMessage = self
161 .channel
162 .request("".to_string(), "RunCommand".to_string(), request)?;
163 let _response = ();
164 Ok(_response)
165 }
166 pub fn run_lua(
168 &mut self,
169 request: CoreRunLuaRequest,
170 ) -> Result<StringListMessage, TChannel::TError> {
171 let _response: StringListMessage = self
172 .channel
173 .request("".to_string(), "RunLua".to_string(), request)?;
174 Ok(_response)
175 }
176 pub fn set_unit_labors(
178 &mut self,
179 request: SetUnitLaborsIn,
180 ) -> Result<(), TChannel::TError> {
181 let _response: EmptyMessage = self
182 .channel
183 .request("".to_string(), "SetUnitLabors".to_string(), request)?;
184 let _response = ();
185 Ok(_response)
186 }
187}
188#[cfg(feature = "reflection")]
189impl<TChannel: crate::Channel> crate::reflection::StubReflection for Core<'_, TChannel> {
190 fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
191 vec![
192 crate ::reflection::RemoteProcedureDescriptor { name : "BindMethod"
193 .to_string(), plugin_name : "".to_string(), input_type :
194 CoreBindRequest::descriptor().full_name().to_string(), output_type :
195 CoreBindReply::descriptor().full_name().to_string(), }, crate
196 ::reflection::RemoteProcedureDescriptor { name : "CoreResume".to_string(),
197 plugin_name : "".to_string(), input_type : EmptyMessage::descriptor()
198 .full_name().to_string(), output_type : IntMessage::descriptor().full_name()
199 .to_string(), }, crate ::reflection::RemoteProcedureDescriptor { name :
200 "CoreSuspend".to_string(), plugin_name : "".to_string(), input_type :
201 EmptyMessage::descriptor().full_name().to_string(), output_type :
202 IntMessage::descriptor().full_name().to_string(), }, crate
203 ::reflection::RemoteProcedureDescriptor { name : "GetDFVersion".to_string(),
204 plugin_name : "".to_string(), input_type : EmptyMessage::descriptor()
205 .full_name().to_string(), output_type : StringMessage::descriptor()
206 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
207 name : "GetVersion".to_string(), plugin_name : "".to_string(), input_type :
208 EmptyMessage::descriptor().full_name().to_string(), output_type :
209 StringMessage::descriptor().full_name().to_string(), }, crate
210 ::reflection::RemoteProcedureDescriptor { name : "GetWorldInfo".to_string(),
211 plugin_name : "".to_string(), input_type : EmptyMessage::descriptor()
212 .full_name().to_string(), output_type : GetWorldInfoOut::descriptor()
213 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
214 name : "ListEnums".to_string(), plugin_name : "".to_string(), input_type :
215 EmptyMessage::descriptor().full_name().to_string(), output_type :
216 ListEnumsOut::descriptor().full_name().to_string(), }, crate
217 ::reflection::RemoteProcedureDescriptor { name : "ListJobSkills".to_string(),
218 plugin_name : "".to_string(), input_type : EmptyMessage::descriptor()
219 .full_name().to_string(), output_type : ListJobSkillsOut::descriptor()
220 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
221 name : "ListMaterials".to_string(), plugin_name : "".to_string(), input_type
222 : ListMaterialsIn::descriptor().full_name().to_string(), output_type :
223 ListMaterialsOut::descriptor().full_name().to_string(), }, crate
224 ::reflection::RemoteProcedureDescriptor { name : "ListSquads".to_string(),
225 plugin_name : "".to_string(), input_type : ListSquadsIn::descriptor()
226 .full_name().to_string(), output_type : ListSquadsOut::descriptor()
227 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
228 name : "ListUnits".to_string(), plugin_name : "".to_string(), input_type :
229 ListUnitsIn::descriptor().full_name().to_string(), output_type :
230 ListUnitsOut::descriptor().full_name().to_string(), }, crate
231 ::reflection::RemoteProcedureDescriptor { name : "RunCommand".to_string(),
232 plugin_name : "".to_string(), input_type :
233 CoreRunCommandRequest::descriptor().full_name().to_string(), output_type :
234 EmptyMessage::descriptor().full_name().to_string(), }, crate
235 ::reflection::RemoteProcedureDescriptor { name : "RunLua".to_string(),
236 plugin_name : "".to_string(), input_type : CoreRunLuaRequest::descriptor()
237 .full_name().to_string(), output_type : StringListMessage::descriptor()
238 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
239 name : "SetUnitLabors".to_string(), plugin_name : "".to_string(), input_type
240 : SetUnitLaborsIn::descriptor().full_name().to_string(), output_type :
241 EmptyMessage::descriptor().full_name().to_string(), },
242 ]
243 }
244}
245pub struct RemoteFortressReader<'a, TChannel: crate::Channel> {
247 pub channel: &'a mut TChannel,
249}
250impl<'a, TChannel: crate::Channel> RemoteFortressReader<'a, TChannel> {
251 pub fn new(channel: &'a mut TChannel) -> Self {
253 Self { channel }
254 }
255 pub fn check_hashes(&mut self) -> Result<(), TChannel::TError> {
257 let request = EmptyMessage::new();
258 let _response: EmptyMessage = self
259 .channel
260 .request(
261 "RemoteFortressReader".to_string(),
262 "CheckHashes".to_string(),
263 request,
264 )?;
265 let _response = ();
266 Ok(_response)
267 }
268 pub fn copy_screen(&mut self) -> Result<ScreenCapture, TChannel::TError> {
270 let request = EmptyMessage::new();
271 let _response: ScreenCapture = self
272 .channel
273 .request(
274 "RemoteFortressReader".to_string(),
275 "CopyScreen".to_string(),
276 request,
277 )?;
278 Ok(_response)
279 }
280 pub fn get_block_list(
282 &mut self,
283 request: BlockRequest,
284 ) -> Result<BlockList, TChannel::TError> {
285 let _response: BlockList = self
286 .channel
287 .request(
288 "RemoteFortressReader".to_string(),
289 "GetBlockList".to_string(),
290 request,
291 )?;
292 Ok(_response)
293 }
294 pub fn get_building_def_list(&mut self) -> Result<BuildingList, TChannel::TError> {
296 let request = EmptyMessage::new();
297 let _response: BuildingList = self
298 .channel
299 .request(
300 "RemoteFortressReader".to_string(),
301 "GetBuildingDefList".to_string(),
302 request,
303 )?;
304 Ok(_response)
305 }
306 pub fn get_creature_raws(&mut self) -> Result<CreatureRawList, TChannel::TError> {
308 let request = EmptyMessage::new();
309 let _response: CreatureRawList = self
310 .channel
311 .request(
312 "RemoteFortressReader".to_string(),
313 "GetCreatureRaws".to_string(),
314 request,
315 )?;
316 Ok(_response)
317 }
318 pub fn get_game_validity(&mut self) -> Result<bool, TChannel::TError> {
320 let request = EmptyMessage::new();
321 let _response: SingleBool = self
322 .channel
323 .request(
324 "RemoteFortressReader".to_string(),
325 "GetGameValidity".to_string(),
326 request,
327 )?;
328 let _response = _response.Value();
329 Ok(_response)
330 }
331 pub fn get_growth_list(&mut self) -> Result<MaterialList, TChannel::TError> {
333 let request = EmptyMessage::new();
334 let _response: MaterialList = self
335 .channel
336 .request(
337 "RemoteFortressReader".to_string(),
338 "GetGrowthList".to_string(),
339 request,
340 )?;
341 Ok(_response)
342 }
343 pub fn get_item_list(&mut self) -> Result<MaterialList, TChannel::TError> {
345 let request = EmptyMessage::new();
346 let _response: MaterialList = self
347 .channel
348 .request(
349 "RemoteFortressReader".to_string(),
350 "GetItemList".to_string(),
351 request,
352 )?;
353 Ok(_response)
354 }
355 pub fn get_language(&mut self) -> Result<Language, TChannel::TError> {
357 let request = EmptyMessage::new();
358 let _response: Language = self
359 .channel
360 .request(
361 "RemoteFortressReader".to_string(),
362 "GetLanguage".to_string(),
363 request,
364 )?;
365 Ok(_response)
366 }
367 pub fn get_map_info(&mut self) -> Result<MapInfo, TChannel::TError> {
369 let request = EmptyMessage::new();
370 let _response: MapInfo = self
371 .channel
372 .request(
373 "RemoteFortressReader".to_string(),
374 "GetMapInfo".to_string(),
375 request,
376 )?;
377 Ok(_response)
378 }
379 pub fn get_material_list(&mut self) -> Result<MaterialList, TChannel::TError> {
381 let request = EmptyMessage::new();
382 let _response: MaterialList = self
383 .channel
384 .request(
385 "RemoteFortressReader".to_string(),
386 "GetMaterialList".to_string(),
387 request,
388 )?;
389 Ok(_response)
390 }
391 pub fn get_partial_creature_raws(
393 &mut self,
394 request: ListRequest,
395 ) -> Result<CreatureRawList, TChannel::TError> {
396 let _response: CreatureRawList = self
397 .channel
398 .request(
399 "RemoteFortressReader".to_string(),
400 "GetPartialCreatureRaws".to_string(),
401 request,
402 )?;
403 Ok(_response)
404 }
405 pub fn get_partial_plant_raws(
407 &mut self,
408 request: ListRequest,
409 ) -> Result<PlantRawList, TChannel::TError> {
410 let _response: PlantRawList = self
411 .channel
412 .request(
413 "RemoteFortressReader".to_string(),
414 "GetPartialPlantRaws".to_string(),
415 request,
416 )?;
417 Ok(_response)
418 }
419 pub fn get_pause_state(&mut self) -> Result<bool, TChannel::TError> {
421 let request = EmptyMessage::new();
422 let _response: SingleBool = self
423 .channel
424 .request(
425 "RemoteFortressReader".to_string(),
426 "GetPauseState".to_string(),
427 request,
428 )?;
429 let _response = _response.Value();
430 Ok(_response)
431 }
432 pub fn get_plant_list(
434 &mut self,
435 request: BlockRequest,
436 ) -> Result<PlantList, TChannel::TError> {
437 let _response: PlantList = self
438 .channel
439 .request(
440 "RemoteFortressReader".to_string(),
441 "GetPlantList".to_string(),
442 request,
443 )?;
444 Ok(_response)
445 }
446 pub fn get_plant_raws(&mut self) -> Result<PlantRawList, TChannel::TError> {
448 let request = EmptyMessage::new();
449 let _response: PlantRawList = self
450 .channel
451 .request(
452 "RemoteFortressReader".to_string(),
453 "GetPlantRaws".to_string(),
454 request,
455 )?;
456 Ok(_response)
457 }
458 pub fn get_region_maps(&mut self) -> Result<RegionMaps, TChannel::TError> {
460 let request = EmptyMessage::new();
461 let _response: RegionMaps = self
462 .channel
463 .request(
464 "RemoteFortressReader".to_string(),
465 "GetRegionMaps".to_string(),
466 request,
467 )?;
468 Ok(_response)
469 }
470 pub fn get_region_maps_new(&mut self) -> Result<RegionMaps, TChannel::TError> {
472 let request = EmptyMessage::new();
473 let _response: RegionMaps = self
474 .channel
475 .request(
476 "RemoteFortressReader".to_string(),
477 "GetRegionMapsNew".to_string(),
478 request,
479 )?;
480 Ok(_response)
481 }
482 pub fn get_reports(&mut self) -> Result<Status, TChannel::TError> {
484 let request = EmptyMessage::new();
485 let _response: Status = self
486 .channel
487 .request(
488 "RemoteFortressReader".to_string(),
489 "GetReports".to_string(),
490 request,
491 )?;
492 Ok(_response)
493 }
494 pub fn get_side_menu(&mut self) -> Result<SidebarState, TChannel::TError> {
496 let request = EmptyMessage::new();
497 let _response: SidebarState = self
498 .channel
499 .request(
500 "RemoteFortressReader".to_string(),
501 "GetSideMenu".to_string(),
502 request,
503 )?;
504 Ok(_response)
505 }
506 pub fn get_tiletype_list(&mut self) -> Result<TiletypeList, TChannel::TError> {
508 let request = EmptyMessage::new();
509 let _response: TiletypeList = self
510 .channel
511 .request(
512 "RemoteFortressReader".to_string(),
513 "GetTiletypeList".to_string(),
514 request,
515 )?;
516 Ok(_response)
517 }
518 pub fn get_unit_list(&mut self) -> Result<UnitList, TChannel::TError> {
520 let request = EmptyMessage::new();
521 let _response: UnitList = self
522 .channel
523 .request(
524 "RemoteFortressReader".to_string(),
525 "GetUnitList".to_string(),
526 request,
527 )?;
528 Ok(_response)
529 }
530 pub fn get_unit_list_inside(
532 &mut self,
533 request: BlockRequest,
534 ) -> Result<UnitList, TChannel::TError> {
535 let _response: UnitList = self
536 .channel
537 .request(
538 "RemoteFortressReader".to_string(),
539 "GetUnitListInside".to_string(),
540 request,
541 )?;
542 Ok(_response)
543 }
544 pub fn get_version_info(&mut self) -> Result<VersionInfo, TChannel::TError> {
546 let request = EmptyMessage::new();
547 let _response: VersionInfo = self
548 .channel
549 .request(
550 "RemoteFortressReader".to_string(),
551 "GetVersionInfo".to_string(),
552 request,
553 )?;
554 Ok(_response)
555 }
556 pub fn get_view_info(&mut self) -> Result<ViewInfo, TChannel::TError> {
558 let request = EmptyMessage::new();
559 let _response: ViewInfo = self
560 .channel
561 .request(
562 "RemoteFortressReader".to_string(),
563 "GetViewInfo".to_string(),
564 request,
565 )?;
566 Ok(_response)
567 }
568 pub fn get_world_map(&mut self) -> Result<WorldMap, TChannel::TError> {
570 let request = EmptyMessage::new();
571 let _response: WorldMap = self
572 .channel
573 .request(
574 "RemoteFortressReader".to_string(),
575 "GetWorldMap".to_string(),
576 request,
577 )?;
578 Ok(_response)
579 }
580 pub fn get_world_map_center(&mut self) -> Result<WorldMap, TChannel::TError> {
582 let request = EmptyMessage::new();
583 let _response: WorldMap = self
584 .channel
585 .request(
586 "RemoteFortressReader".to_string(),
587 "GetWorldMapCenter".to_string(),
588 request,
589 )?;
590 Ok(_response)
591 }
592 pub fn get_world_map_new(&mut self) -> Result<WorldMap, TChannel::TError> {
594 let request = EmptyMessage::new();
595 let _response: WorldMap = self
596 .channel
597 .request(
598 "RemoteFortressReader".to_string(),
599 "GetWorldMapNew".to_string(),
600 request,
601 )?;
602 Ok(_response)
603 }
604 pub fn jump_command(
606 &mut self,
607 request: MoveCommandParams,
608 ) -> Result<(), TChannel::TError> {
609 let _response: EmptyMessage = self
610 .channel
611 .request(
612 "RemoteFortressReader".to_string(),
613 "JumpCommand".to_string(),
614 request,
615 )?;
616 let _response = ();
617 Ok(_response)
618 }
619 pub fn menu_query(&mut self) -> Result<MenuContents, TChannel::TError> {
621 let request = EmptyMessage::new();
622 let _response: MenuContents = self
623 .channel
624 .request(
625 "RemoteFortressReader".to_string(),
626 "MenuQuery".to_string(),
627 request,
628 )?;
629 Ok(_response)
630 }
631 pub fn misc_move_command(
633 &mut self,
634 request: MiscMoveParams,
635 ) -> Result<(), TChannel::TError> {
636 let _response: EmptyMessage = self
637 .channel
638 .request(
639 "RemoteFortressReader".to_string(),
640 "MiscMoveCommand".to_string(),
641 request,
642 )?;
643 let _response = ();
644 Ok(_response)
645 }
646 pub fn move_command(
648 &mut self,
649 request: MoveCommandParams,
650 ) -> Result<(), TChannel::TError> {
651 let _response: EmptyMessage = self
652 .channel
653 .request(
654 "RemoteFortressReader".to_string(),
655 "MoveCommand".to_string(),
656 request,
657 )?;
658 let _response = ();
659 Ok(_response)
660 }
661 pub fn movement_select_command(
663 &mut self,
664 value: i32,
665 ) -> Result<(), TChannel::TError> {
666 let mut request = IntMessage::new();
667 request.set_value(value);
668 let _response: EmptyMessage = self
669 .channel
670 .request(
671 "RemoteFortressReader".to_string(),
672 "MovementSelectCommand".to_string(),
673 request,
674 )?;
675 let _response = ();
676 Ok(_response)
677 }
678 pub fn pass_keyboard_event(
680 &mut self,
681 request: KeyboardEvent,
682 ) -> Result<(), TChannel::TError> {
683 let _response: EmptyMessage = self
684 .channel
685 .request(
686 "RemoteFortressReader".to_string(),
687 "PassKeyboardEvent".to_string(),
688 request,
689 )?;
690 let _response = ();
691 Ok(_response)
692 }
693 pub fn reset_map_hashes(&mut self) -> Result<(), TChannel::TError> {
695 let request = EmptyMessage::new();
696 let _response: EmptyMessage = self
697 .channel
698 .request(
699 "RemoteFortressReader".to_string(),
700 "ResetMapHashes".to_string(),
701 request,
702 )?;
703 let _response = ();
704 Ok(_response)
705 }
706 pub fn send_dig_command(
708 &mut self,
709 request: DigCommand,
710 ) -> Result<(), TChannel::TError> {
711 let _response: EmptyMessage = self
712 .channel
713 .request(
714 "RemoteFortressReader".to_string(),
715 "SendDigCommand".to_string(),
716 request,
717 )?;
718 let _response = ();
719 Ok(_response)
720 }
721 pub fn set_pause_state(&mut self, value: bool) -> Result<(), TChannel::TError> {
723 let mut request = SingleBool::new();
724 request.set_Value(value);
725 let _response: EmptyMessage = self
726 .channel
727 .request(
728 "RemoteFortressReader".to_string(),
729 "SetPauseState".to_string(),
730 request,
731 )?;
732 let _response = ();
733 Ok(_response)
734 }
735 pub fn set_side_menu(
737 &mut self,
738 request: SidebarCommand,
739 ) -> Result<(), TChannel::TError> {
740 let _response: EmptyMessage = self
741 .channel
742 .request(
743 "RemoteFortressReader".to_string(),
744 "SetSideMenu".to_string(),
745 request,
746 )?;
747 let _response = ();
748 Ok(_response)
749 }
750}
751#[cfg(feature = "reflection")]
752impl<TChannel: crate::Channel> crate::reflection::StubReflection
753for RemoteFortressReader<'_, TChannel> {
754 fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
755 vec![
756 crate ::reflection::RemoteProcedureDescriptor { name : "CheckHashes"
757 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
758 EmptyMessage::descriptor().full_name().to_string(), output_type :
759 EmptyMessage::descriptor().full_name().to_string(), }, crate
760 ::reflection::RemoteProcedureDescriptor { name : "CopyScreen".to_string(),
761 plugin_name : "RemoteFortressReader".to_string(), input_type :
762 EmptyMessage::descriptor().full_name().to_string(), output_type :
763 ScreenCapture::descriptor().full_name().to_string(), }, crate
764 ::reflection::RemoteProcedureDescriptor { name : "GetBlockList".to_string(),
765 plugin_name : "RemoteFortressReader".to_string(), input_type :
766 BlockRequest::descriptor().full_name().to_string(), output_type :
767 BlockList::descriptor().full_name().to_string(), }, crate
768 ::reflection::RemoteProcedureDescriptor { name : "GetBuildingDefList"
769 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
770 EmptyMessage::descriptor().full_name().to_string(), output_type :
771 BuildingList::descriptor().full_name().to_string(), }, crate
772 ::reflection::RemoteProcedureDescriptor { name : "GetCreatureRaws"
773 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
774 EmptyMessage::descriptor().full_name().to_string(), output_type :
775 CreatureRawList::descriptor().full_name().to_string(), }, crate
776 ::reflection::RemoteProcedureDescriptor { name : "GetGameValidity"
777 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
778 EmptyMessage::descriptor().full_name().to_string(), output_type :
779 SingleBool::descriptor().full_name().to_string(), }, crate
780 ::reflection::RemoteProcedureDescriptor { name : "GetGrowthList".to_string(),
781 plugin_name : "RemoteFortressReader".to_string(), input_type :
782 EmptyMessage::descriptor().full_name().to_string(), output_type :
783 MaterialList::descriptor().full_name().to_string(), }, crate
784 ::reflection::RemoteProcedureDescriptor { name : "GetItemList".to_string(),
785 plugin_name : "RemoteFortressReader".to_string(), input_type :
786 EmptyMessage::descriptor().full_name().to_string(), output_type :
787 MaterialList::descriptor().full_name().to_string(), }, crate
788 ::reflection::RemoteProcedureDescriptor { name : "GetLanguage".to_string(),
789 plugin_name : "RemoteFortressReader".to_string(), input_type :
790 EmptyMessage::descriptor().full_name().to_string(), output_type :
791 Language::descriptor().full_name().to_string(), }, crate
792 ::reflection::RemoteProcedureDescriptor { name : "GetMapInfo".to_string(),
793 plugin_name : "RemoteFortressReader".to_string(), input_type :
794 EmptyMessage::descriptor().full_name().to_string(), output_type :
795 MapInfo::descriptor().full_name().to_string(), }, crate
796 ::reflection::RemoteProcedureDescriptor { name : "GetMaterialList"
797 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
798 EmptyMessage::descriptor().full_name().to_string(), output_type :
799 MaterialList::descriptor().full_name().to_string(), }, crate
800 ::reflection::RemoteProcedureDescriptor { name : "GetPartialCreatureRaws"
801 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
802 ListRequest::descriptor().full_name().to_string(), output_type :
803 CreatureRawList::descriptor().full_name().to_string(), }, crate
804 ::reflection::RemoteProcedureDescriptor { name : "GetPartialPlantRaws"
805 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
806 ListRequest::descriptor().full_name().to_string(), output_type :
807 PlantRawList::descriptor().full_name().to_string(), }, crate
808 ::reflection::RemoteProcedureDescriptor { name : "GetPauseState".to_string(),
809 plugin_name : "RemoteFortressReader".to_string(), input_type :
810 EmptyMessage::descriptor().full_name().to_string(), output_type :
811 SingleBool::descriptor().full_name().to_string(), }, crate
812 ::reflection::RemoteProcedureDescriptor { name : "GetPlantList".to_string(),
813 plugin_name : "RemoteFortressReader".to_string(), input_type :
814 BlockRequest::descriptor().full_name().to_string(), output_type :
815 PlantList::descriptor().full_name().to_string(), }, crate
816 ::reflection::RemoteProcedureDescriptor { name : "GetPlantRaws".to_string(),
817 plugin_name : "RemoteFortressReader".to_string(), input_type :
818 EmptyMessage::descriptor().full_name().to_string(), output_type :
819 PlantRawList::descriptor().full_name().to_string(), }, crate
820 ::reflection::RemoteProcedureDescriptor { name : "GetRegionMaps".to_string(),
821 plugin_name : "RemoteFortressReader".to_string(), input_type :
822 EmptyMessage::descriptor().full_name().to_string(), output_type :
823 RegionMaps::descriptor().full_name().to_string(), }, crate
824 ::reflection::RemoteProcedureDescriptor { name : "GetRegionMapsNew"
825 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
826 EmptyMessage::descriptor().full_name().to_string(), output_type :
827 RegionMaps::descriptor().full_name().to_string(), }, crate
828 ::reflection::RemoteProcedureDescriptor { name : "GetReports".to_string(),
829 plugin_name : "RemoteFortressReader".to_string(), input_type :
830 EmptyMessage::descriptor().full_name().to_string(), output_type :
831 Status::descriptor().full_name().to_string(), }, crate
832 ::reflection::RemoteProcedureDescriptor { name : "GetSideMenu".to_string(),
833 plugin_name : "RemoteFortressReader".to_string(), input_type :
834 EmptyMessage::descriptor().full_name().to_string(), output_type :
835 SidebarState::descriptor().full_name().to_string(), }, crate
836 ::reflection::RemoteProcedureDescriptor { name : "GetTiletypeList"
837 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
838 EmptyMessage::descriptor().full_name().to_string(), output_type :
839 TiletypeList::descriptor().full_name().to_string(), }, crate
840 ::reflection::RemoteProcedureDescriptor { name : "GetUnitList".to_string(),
841 plugin_name : "RemoteFortressReader".to_string(), input_type :
842 EmptyMessage::descriptor().full_name().to_string(), output_type :
843 UnitList::descriptor().full_name().to_string(), }, crate
844 ::reflection::RemoteProcedureDescriptor { name : "GetUnitListInside"
845 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
846 BlockRequest::descriptor().full_name().to_string(), output_type :
847 UnitList::descriptor().full_name().to_string(), }, crate
848 ::reflection::RemoteProcedureDescriptor { name : "GetVersionInfo"
849 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
850 EmptyMessage::descriptor().full_name().to_string(), output_type :
851 VersionInfo::descriptor().full_name().to_string(), }, crate
852 ::reflection::RemoteProcedureDescriptor { name : "GetViewInfo".to_string(),
853 plugin_name : "RemoteFortressReader".to_string(), input_type :
854 EmptyMessage::descriptor().full_name().to_string(), output_type :
855 ViewInfo::descriptor().full_name().to_string(), }, crate
856 ::reflection::RemoteProcedureDescriptor { name : "GetWorldMap".to_string(),
857 plugin_name : "RemoteFortressReader".to_string(), input_type :
858 EmptyMessage::descriptor().full_name().to_string(), output_type :
859 WorldMap::descriptor().full_name().to_string(), }, crate
860 ::reflection::RemoteProcedureDescriptor { name : "GetWorldMapCenter"
861 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
862 EmptyMessage::descriptor().full_name().to_string(), output_type :
863 WorldMap::descriptor().full_name().to_string(), }, crate
864 ::reflection::RemoteProcedureDescriptor { name : "GetWorldMapNew"
865 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
866 EmptyMessage::descriptor().full_name().to_string(), output_type :
867 WorldMap::descriptor().full_name().to_string(), }, crate
868 ::reflection::RemoteProcedureDescriptor { name : "JumpCommand".to_string(),
869 plugin_name : "RemoteFortressReader".to_string(), input_type :
870 MoveCommandParams::descriptor().full_name().to_string(), output_type :
871 EmptyMessage::descriptor().full_name().to_string(), }, crate
872 ::reflection::RemoteProcedureDescriptor { name : "MenuQuery".to_string(),
873 plugin_name : "RemoteFortressReader".to_string(), input_type :
874 EmptyMessage::descriptor().full_name().to_string(), output_type :
875 MenuContents::descriptor().full_name().to_string(), }, crate
876 ::reflection::RemoteProcedureDescriptor { name : "MiscMoveCommand"
877 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
878 MiscMoveParams::descriptor().full_name().to_string(), output_type :
879 EmptyMessage::descriptor().full_name().to_string(), }, crate
880 ::reflection::RemoteProcedureDescriptor { name : "MoveCommand".to_string(),
881 plugin_name : "RemoteFortressReader".to_string(), input_type :
882 MoveCommandParams::descriptor().full_name().to_string(), output_type :
883 EmptyMessage::descriptor().full_name().to_string(), }, crate
884 ::reflection::RemoteProcedureDescriptor { name : "MovementSelectCommand"
885 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
886 IntMessage::descriptor().full_name().to_string(), output_type :
887 EmptyMessage::descriptor().full_name().to_string(), }, crate
888 ::reflection::RemoteProcedureDescriptor { name : "PassKeyboardEvent"
889 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
890 KeyboardEvent::descriptor().full_name().to_string(), output_type :
891 EmptyMessage::descriptor().full_name().to_string(), }, crate
892 ::reflection::RemoteProcedureDescriptor { name : "ResetMapHashes"
893 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
894 EmptyMessage::descriptor().full_name().to_string(), output_type :
895 EmptyMessage::descriptor().full_name().to_string(), }, crate
896 ::reflection::RemoteProcedureDescriptor { name : "SendDigCommand"
897 .to_string(), plugin_name : "RemoteFortressReader".to_string(), input_type :
898 DigCommand::descriptor().full_name().to_string(), output_type :
899 EmptyMessage::descriptor().full_name().to_string(), }, crate
900 ::reflection::RemoteProcedureDescriptor { name : "SetPauseState".to_string(),
901 plugin_name : "RemoteFortressReader".to_string(), input_type :
902 SingleBool::descriptor().full_name().to_string(), output_type :
903 EmptyMessage::descriptor().full_name().to_string(), }, crate
904 ::reflection::RemoteProcedureDescriptor { name : "SetSideMenu".to_string(),
905 plugin_name : "RemoteFortressReader".to_string(), input_type :
906 SidebarCommand::descriptor().full_name().to_string(), output_type :
907 EmptyMessage::descriptor().full_name().to_string(), },
908 ]
909 }
910}
911pub struct Isoworldremote<'a, TChannel: crate::Channel> {
913 pub channel: &'a mut TChannel,
915}
916impl<'a, TChannel: crate::Channel> Isoworldremote<'a, TChannel> {
917 pub fn new(channel: &'a mut TChannel) -> Self {
919 Self { channel }
920 }
921 pub fn get_embark_info(
923 &mut self,
924 request: MapRequest,
925 ) -> Result<MapReply, TChannel::TError> {
926 let _response: MapReply = self
927 .channel
928 .request(
929 "isoworldremote".to_string(),
930 "GetEmbarkInfo".to_string(),
931 request,
932 )?;
933 Ok(_response)
934 }
935 pub fn get_embark_tile(
937 &mut self,
938 request: TileRequest,
939 ) -> Result<EmbarkTile, TChannel::TError> {
940 let _response: EmbarkTile = self
941 .channel
942 .request(
943 "isoworldremote".to_string(),
944 "GetEmbarkTile".to_string(),
945 request,
946 )?;
947 Ok(_response)
948 }
949 pub fn get_raw_names(
951 &mut self,
952 request: MapRequest,
953 ) -> Result<RawNames, TChannel::TError> {
954 let _response: RawNames = self
955 .channel
956 .request("isoworldremote".to_string(), "GetRawNames".to_string(), request)?;
957 Ok(_response)
958 }
959}
960#[cfg(feature = "reflection")]
961impl<TChannel: crate::Channel> crate::reflection::StubReflection
962for Isoworldremote<'_, TChannel> {
963 fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
964 vec![
965 crate ::reflection::RemoteProcedureDescriptor { name : "GetEmbarkInfo"
966 .to_string(), plugin_name : "isoworldremote".to_string(), input_type :
967 MapRequest::descriptor().full_name().to_string(), output_type :
968 MapReply::descriptor().full_name().to_string(), }, crate
969 ::reflection::RemoteProcedureDescriptor { name : "GetEmbarkTile".to_string(),
970 plugin_name : "isoworldremote".to_string(), input_type :
971 TileRequest::descriptor().full_name().to_string(), output_type :
972 EmbarkTile::descriptor().full_name().to_string(), }, crate
973 ::reflection::RemoteProcedureDescriptor { name : "GetRawNames".to_string(),
974 plugin_name : "isoworldremote".to_string(), input_type :
975 MapRequest::descriptor().full_name().to_string(), output_type :
976 RawNames::descriptor().full_name().to_string(), },
977 ]
978 }
979}
980pub struct Rename<'a, TChannel: crate::Channel> {
982 pub channel: &'a mut TChannel,
984}
985impl<'a, TChannel: crate::Channel> Rename<'a, TChannel> {
986 pub fn new(channel: &'a mut TChannel) -> Self {
988 Self { channel }
989 }
990 pub fn rename_building(
992 &mut self,
993 request: RenameBuildingIn,
994 ) -> Result<(), TChannel::TError> {
995 let _response: EmptyMessage = self
996 .channel
997 .request("rename".to_string(), "RenameBuilding".to_string(), request)?;
998 let _response = ();
999 Ok(_response)
1000 }
1001 pub fn rename_squad(
1003 &mut self,
1004 request: RenameSquadIn,
1005 ) -> Result<(), TChannel::TError> {
1006 let _response: EmptyMessage = self
1007 .channel
1008 .request("rename".to_string(), "RenameSquad".to_string(), request)?;
1009 let _response = ();
1010 Ok(_response)
1011 }
1012 pub fn rename_unit(
1014 &mut self,
1015 request: RenameUnitIn,
1016 ) -> Result<(), TChannel::TError> {
1017 let _response: EmptyMessage = self
1018 .channel
1019 .request("rename".to_string(), "RenameUnit".to_string(), request)?;
1020 let _response = ();
1021 Ok(_response)
1022 }
1023}
1024#[cfg(feature = "reflection")]
1025impl<TChannel: crate::Channel> crate::reflection::StubReflection
1026for Rename<'_, TChannel> {
1027 fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
1028 vec![
1029 crate ::reflection::RemoteProcedureDescriptor { name : "RenameBuilding"
1030 .to_string(), plugin_name : "rename".to_string(), input_type :
1031 RenameBuildingIn::descriptor().full_name().to_string(), output_type :
1032 EmptyMessage::descriptor().full_name().to_string(), }, crate
1033 ::reflection::RemoteProcedureDescriptor { name : "RenameSquad".to_string(),
1034 plugin_name : "rename".to_string(), input_type : RenameSquadIn::descriptor()
1035 .full_name().to_string(), output_type : EmptyMessage::descriptor()
1036 .full_name().to_string(), }, crate ::reflection::RemoteProcedureDescriptor {
1037 name : "RenameUnit".to_string(), plugin_name : "rename".to_string(),
1038 input_type : RenameUnitIn::descriptor().full_name().to_string(), output_type
1039 : EmptyMessage::descriptor().full_name().to_string(), },
1040 ]
1041 }
1042}