Skip to main content

dfhack_proto/generated/stubs/
mod.rs

1use crate::messages::*;
2use prost::Name;
3///Generated list of DFHack stubs. Each stub communicates with a plugin.
4pub struct Stubs<TChannel: crate::Channel> {
5    channel: TChannel,
6}
7impl<TChannel: crate::Channel> From<TChannel> for Stubs<TChannel> {
8    ///Initialize all the generated stubs.
9    fn from(channel: TChannel) -> Self {
10        Self { channel }
11    }
12}
13impl<'a, TChannel: crate::Channel> Stubs<TChannel> {
14    ///RPCs of the  plugin
15    pub fn core(&'a mut self) -> crate::stubs::Core<'a, TChannel> {
16        crate::stubs::Core::new(&mut self.channel)
17    }
18    ///RPCs of the RemoteFortressReader plugin
19    pub fn remote_fortress_reader(
20        &'a mut self,
21    ) -> crate::stubs::RemoteFortressReader<'a, TChannel> {
22        crate::stubs::RemoteFortressReader::new(&mut self.channel)
23    }
24    ///RPCs of the mypluginname plugin
25    pub fn mypluginname(&'a mut self) -> crate::stubs::Mypluginname<'a, TChannel> {
26        crate::stubs::Mypluginname::new(&mut self.channel)
27    }
28}
29impl<TChannel: crate::Channel> crate::reflection::StubReflection for Stubs<TChannel> {
30    fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
31        let mut methods = Vec::new();
32        methods.extend(Core::<TChannel>::list_methods());
33        methods.extend(Core::<TChannel>::list_methods());
34        methods.extend(Core::<TChannel>::list_methods());
35        methods
36    }
37}
38///RPC for the "" plugin.
39pub struct Core<'a, TChannel: crate::Channel> {
40    ///Reference to the client to exchange messages.
41    pub channel: &'a mut TChannel,
42}
43impl<'a, TChannel: crate::Channel> Core<'a, TChannel> {
44    ///Initialize the plugin from a channel to DFHack.
45    pub fn new(channel: &'a mut TChannel) -> Self {
46        Self { channel }
47    }
48    ///Method `BindMethod` from the plugin ``
49    pub fn bind_method(
50        &mut self,
51        request: CoreBindRequest,
52    ) -> Result<crate::Reply<CoreBindReply>, TChannel::TError> {
53        let _response: crate::Reply<CoreBindReply> = self
54            .channel
55            .request("", "BindMethod", request)?;
56        Ok(_response)
57    }
58    ///Method `CoreResume` from the plugin ``
59    pub fn core_resume(&mut self) -> Result<crate::Reply<i32>, TChannel::TError> {
60        let request = EmptyMessage::default();
61        let _response: crate::Reply<IntMessage> = self
62            .channel
63            .request("", "CoreResume", request)?;
64        let _response = crate::Reply {
65            reply: _response.value,
66            fragments: _response.fragments,
67        };
68        Ok(_response)
69    }
70    ///Method `CoreSuspend` from the plugin ``
71    pub fn core_suspend(&mut self) -> Result<crate::Reply<i32>, TChannel::TError> {
72        let request = EmptyMessage::default();
73        let _response: crate::Reply<IntMessage> = self
74            .channel
75            .request("", "CoreSuspend", request)?;
76        let _response = crate::Reply {
77            reply: _response.value,
78            fragments: _response.fragments,
79        };
80        Ok(_response)
81    }
82    ///Method `GetDFVersion` from the plugin ``
83    pub fn get_df_version(&mut self) -> Result<crate::Reply<String>, TChannel::TError> {
84        let request = EmptyMessage::default();
85        let _response: crate::Reply<StringMessage> = self
86            .channel
87            .request("", "GetDFVersion", request)?;
88        let _response = crate::Reply {
89            reply: _response.value.clone(),
90            fragments: _response.fragments,
91        };
92        Ok(_response)
93    }
94    ///Method `GetVersion` from the plugin ``
95    pub fn get_version(&mut self) -> Result<crate::Reply<String>, TChannel::TError> {
96        let request = EmptyMessage::default();
97        let _response: crate::Reply<StringMessage> = self
98            .channel
99            .request("", "GetVersion", request)?;
100        let _response = crate::Reply {
101            reply: _response.value.clone(),
102            fragments: _response.fragments,
103        };
104        Ok(_response)
105    }
106    ///Method `GetWorldInfo` from the plugin ``
107    pub fn get_world_info(
108        &mut self,
109    ) -> Result<crate::Reply<GetWorldInfoOut>, TChannel::TError> {
110        let request = EmptyMessage::default();
111        let _response: crate::Reply<GetWorldInfoOut> = self
112            .channel
113            .request("", "GetWorldInfo", request)?;
114        Ok(_response)
115    }
116    ///Method `ListEnums` from the plugin ``
117    pub fn list_enums(
118        &mut self,
119    ) -> Result<crate::Reply<ListEnumsOut>, TChannel::TError> {
120        let request = EmptyMessage::default();
121        let _response: crate::Reply<ListEnumsOut> = self
122            .channel
123            .request("", "ListEnums", request)?;
124        Ok(_response)
125    }
126    ///Method `ListJobSkills` from the plugin ``
127    pub fn list_job_skills(
128        &mut self,
129    ) -> Result<crate::Reply<ListJobSkillsOut>, TChannel::TError> {
130        let request = EmptyMessage::default();
131        let _response: crate::Reply<ListJobSkillsOut> = self
132            .channel
133            .request("", "ListJobSkills", request)?;
134        Ok(_response)
135    }
136    ///Method `ListMaterials` from the plugin ``
137    pub fn list_materials(
138        &mut self,
139        request: ListMaterialsIn,
140    ) -> Result<crate::Reply<ListMaterialsOut>, TChannel::TError> {
141        let _response: crate::Reply<ListMaterialsOut> = self
142            .channel
143            .request("", "ListMaterials", request)?;
144        Ok(_response)
145    }
146    ///Method `ListSquads` from the plugin ``
147    pub fn list_squads(
148        &mut self,
149        request: ListSquadsIn,
150    ) -> Result<crate::Reply<ListSquadsOut>, TChannel::TError> {
151        let _response: crate::Reply<ListSquadsOut> = self
152            .channel
153            .request("", "ListSquads", request)?;
154        Ok(_response)
155    }
156    ///Method `ListUnits` from the plugin ``
157    pub fn list_units(
158        &mut self,
159        request: ListUnitsIn,
160    ) -> Result<crate::Reply<ListUnitsOut>, TChannel::TError> {
161        let _response: crate::Reply<ListUnitsOut> = self
162            .channel
163            .request("", "ListUnits", request)?;
164        Ok(_response)
165    }
166    ///Method `RunCommand` from the plugin ``
167    pub fn run_command(
168        &mut self,
169        request: CoreRunCommandRequest,
170    ) -> Result<crate::Reply<()>, TChannel::TError> {
171        let _response: crate::Reply<EmptyMessage> = self
172            .channel
173            .request("", "RunCommand", request)?;
174        let _response = crate::Reply {
175            reply: (),
176            fragments: _response.fragments,
177        };
178        Ok(_response)
179    }
180    ///Method `RunLua` from the plugin ``
181    pub fn run_lua(
182        &mut self,
183        request: CoreRunLuaRequest,
184    ) -> Result<crate::Reply<StringListMessage>, TChannel::TError> {
185        let _response: crate::Reply<StringListMessage> = self
186            .channel
187            .request("", "RunLua", request)?;
188        Ok(_response)
189    }
190    ///Method `SetUnitLabors` from the plugin ``
191    pub fn set_unit_labors(
192        &mut self,
193        request: SetUnitLaborsIn,
194    ) -> Result<crate::Reply<()>, TChannel::TError> {
195        let _response: crate::Reply<EmptyMessage> = self
196            .channel
197            .request("", "SetUnitLabors", request)?;
198        let _response = crate::Reply {
199            reply: (),
200            fragments: _response.fragments,
201        };
202        Ok(_response)
203    }
204}
205impl<TChannel: crate::Channel> crate::reflection::StubReflection for Core<'_, TChannel> {
206    fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
207        vec![
208            crate ::reflection::RemoteProcedureDescriptor { name : "BindMethod",
209            plugin_name : "", input_type : CoreBindRequest::full_name(), output_type :
210            CoreBindReply::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
211            { name : "CoreResume", plugin_name : "", input_type :
212            EmptyMessage::full_name(), output_type : IntMessage::full_name(), }, crate
213            ::reflection::RemoteProcedureDescriptor { name : "CoreSuspend", plugin_name :
214            "", input_type : EmptyMessage::full_name(), output_type :
215            IntMessage::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
216            name : "GetDFVersion", plugin_name : "", input_type :
217            EmptyMessage::full_name(), output_type : StringMessage::full_name(), }, crate
218            ::reflection::RemoteProcedureDescriptor { name : "GetVersion", plugin_name :
219            "", input_type : EmptyMessage::full_name(), output_type :
220            StringMessage::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
221            { name : "GetWorldInfo", plugin_name : "", input_type :
222            EmptyMessage::full_name(), output_type : GetWorldInfoOut::full_name(), },
223            crate ::reflection::RemoteProcedureDescriptor { name : "ListEnums",
224            plugin_name : "", input_type : EmptyMessage::full_name(), output_type :
225            ListEnumsOut::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
226            name : "ListJobSkills", plugin_name : "", input_type :
227            EmptyMessage::full_name(), output_type : ListJobSkillsOut::full_name(), },
228            crate ::reflection::RemoteProcedureDescriptor { name : "ListMaterials",
229            plugin_name : "", input_type : ListMaterialsIn::full_name(), output_type :
230            ListMaterialsOut::full_name(), }, crate
231            ::reflection::RemoteProcedureDescriptor { name : "ListSquads", plugin_name :
232            "", input_type : ListSquadsIn::full_name(), output_type :
233            ListSquadsOut::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
234            { name : "ListUnits", plugin_name : "", input_type :
235            ListUnitsIn::full_name(), output_type : ListUnitsOut::full_name(), }, crate
236            ::reflection::RemoteProcedureDescriptor { name : "RunCommand", plugin_name :
237            "", input_type : CoreRunCommandRequest::full_name(), output_type :
238            EmptyMessage::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
239            name : "RunLua", plugin_name : "", input_type :
240            CoreRunLuaRequest::full_name(), output_type : StringListMessage::full_name(),
241            }, crate ::reflection::RemoteProcedureDescriptor { name : "SetUnitLabors",
242            plugin_name : "", input_type : SetUnitLaborsIn::full_name(), output_type :
243            EmptyMessage::full_name(), },
244        ]
245    }
246}
247///RPC for the "RemoteFortressReader" plugin.
248pub struct RemoteFortressReader<'a, TChannel: crate::Channel> {
249    ///Reference to the client to exchange messages.
250    pub channel: &'a mut TChannel,
251}
252impl<'a, TChannel: crate::Channel> RemoteFortressReader<'a, TChannel> {
253    ///Initialize the plugin from a channel to DFHack.
254    pub fn new(channel: &'a mut TChannel) -> Self {
255        Self { channel }
256    }
257    ///Method `CheckHashes` from the plugin `RemoteFortressReader`
258    pub fn check_hashes(&mut self) -> Result<crate::Reply<()>, TChannel::TError> {
259        let request = EmptyMessage::default();
260        let _response: crate::Reply<EmptyMessage> = self
261            .channel
262            .request("RemoteFortressReader", "CheckHashes", request)?;
263        let _response = crate::Reply {
264            reply: (),
265            fragments: _response.fragments,
266        };
267        Ok(_response)
268    }
269    ///Method `CopyScreen` from the plugin `RemoteFortressReader`
270    pub fn copy_screen(
271        &mut self,
272    ) -> Result<crate::Reply<ScreenCapture>, TChannel::TError> {
273        let request = EmptyMessage::default();
274        let _response: crate::Reply<ScreenCapture> = self
275            .channel
276            .request("RemoteFortressReader", "CopyScreen", request)?;
277        Ok(_response)
278    }
279    ///Method `GetBlockList` from the plugin `RemoteFortressReader`
280    pub fn get_block_list(
281        &mut self,
282        request: BlockRequest,
283    ) -> Result<crate::Reply<BlockList>, TChannel::TError> {
284        let _response: crate::Reply<BlockList> = self
285            .channel
286            .request("RemoteFortressReader", "GetBlockList", request)?;
287        Ok(_response)
288    }
289    ///Method `GetBuildingDefList` from the plugin `RemoteFortressReader`
290    pub fn get_building_def_list(
291        &mut self,
292    ) -> Result<crate::Reply<BuildingList>, TChannel::TError> {
293        let request = EmptyMessage::default();
294        let _response: crate::Reply<BuildingList> = self
295            .channel
296            .request("RemoteFortressReader", "GetBuildingDefList", request)?;
297        Ok(_response)
298    }
299    ///Method `GetCreatureRaws` from the plugin `RemoteFortressReader`
300    pub fn get_creature_raws(
301        &mut self,
302    ) -> Result<crate::Reply<CreatureRawList>, TChannel::TError> {
303        let request = EmptyMessage::default();
304        let _response: crate::Reply<CreatureRawList> = self
305            .channel
306            .request("RemoteFortressReader", "GetCreatureRaws", request)?;
307        Ok(_response)
308    }
309    ///Method `GetGameValidity` from the plugin `RemoteFortressReader`
310    pub fn get_game_validity(&mut self) -> Result<crate::Reply<bool>, TChannel::TError> {
311        let request = EmptyMessage::default();
312        let _response: crate::Reply<SingleBool> = self
313            .channel
314            .request("RemoteFortressReader", "GetGameValidity", request)?;
315        let _response = crate::Reply {
316            reply: _response.value(),
317            fragments: _response.fragments,
318        };
319        Ok(_response)
320    }
321    ///Method `GetGrowthList` from the plugin `RemoteFortressReader`
322    pub fn get_growth_list(
323        &mut self,
324    ) -> Result<crate::Reply<MaterialList>, TChannel::TError> {
325        let request = EmptyMessage::default();
326        let _response: crate::Reply<MaterialList> = self
327            .channel
328            .request("RemoteFortressReader", "GetGrowthList", request)?;
329        Ok(_response)
330    }
331    ///Method `GetItemList` from the plugin `RemoteFortressReader`
332    pub fn get_item_list(
333        &mut self,
334    ) -> Result<crate::Reply<MaterialList>, TChannel::TError> {
335        let request = EmptyMessage::default();
336        let _response: crate::Reply<MaterialList> = self
337            .channel
338            .request("RemoteFortressReader", "GetItemList", request)?;
339        Ok(_response)
340    }
341    ///Method `GetLanguage` from the plugin `RemoteFortressReader`
342    pub fn get_language(&mut self) -> Result<crate::Reply<Language>, TChannel::TError> {
343        let request = EmptyMessage::default();
344        let _response: crate::Reply<Language> = self
345            .channel
346            .request("RemoteFortressReader", "GetLanguage", request)?;
347        Ok(_response)
348    }
349    ///Method `GetMapInfo` from the plugin `RemoteFortressReader`
350    pub fn get_map_info(&mut self) -> Result<crate::Reply<MapInfo>, TChannel::TError> {
351        let request = EmptyMessage::default();
352        let _response: crate::Reply<MapInfo> = self
353            .channel
354            .request("RemoteFortressReader", "GetMapInfo", request)?;
355        Ok(_response)
356    }
357    ///Method `GetMaterialList` from the plugin `RemoteFortressReader`
358    pub fn get_material_list(
359        &mut self,
360    ) -> Result<crate::Reply<MaterialList>, TChannel::TError> {
361        let request = EmptyMessage::default();
362        let _response: crate::Reply<MaterialList> = self
363            .channel
364            .request("RemoteFortressReader", "GetMaterialList", request)?;
365        Ok(_response)
366    }
367    ///Method `GetPartialCreatureRaws` from the plugin `RemoteFortressReader`
368    pub fn get_partial_creature_raws(
369        &mut self,
370        request: ListRequest,
371    ) -> Result<crate::Reply<CreatureRawList>, TChannel::TError> {
372        let _response: crate::Reply<CreatureRawList> = self
373            .channel
374            .request("RemoteFortressReader", "GetPartialCreatureRaws", request)?;
375        Ok(_response)
376    }
377    ///Method `GetPartialPlantRaws` from the plugin `RemoteFortressReader`
378    pub fn get_partial_plant_raws(
379        &mut self,
380        request: ListRequest,
381    ) -> Result<crate::Reply<PlantRawList>, TChannel::TError> {
382        let _response: crate::Reply<PlantRawList> = self
383            .channel
384            .request("RemoteFortressReader", "GetPartialPlantRaws", request)?;
385        Ok(_response)
386    }
387    ///Method `GetPauseState` from the plugin `RemoteFortressReader`
388    pub fn get_pause_state(&mut self) -> Result<crate::Reply<bool>, TChannel::TError> {
389        let request = EmptyMessage::default();
390        let _response: crate::Reply<SingleBool> = self
391            .channel
392            .request("RemoteFortressReader", "GetPauseState", request)?;
393        let _response = crate::Reply {
394            reply: _response.value(),
395            fragments: _response.fragments,
396        };
397        Ok(_response)
398    }
399    ///Method `GetPlantList` from the plugin `RemoteFortressReader`
400    pub fn get_plant_list(
401        &mut self,
402        request: BlockRequest,
403    ) -> Result<crate::Reply<PlantList>, TChannel::TError> {
404        let _response: crate::Reply<PlantList> = self
405            .channel
406            .request("RemoteFortressReader", "GetPlantList", request)?;
407        Ok(_response)
408    }
409    ///Method `GetPlantRaws` from the plugin `RemoteFortressReader`
410    pub fn get_plant_raws(
411        &mut self,
412    ) -> Result<crate::Reply<PlantRawList>, TChannel::TError> {
413        let request = EmptyMessage::default();
414        let _response: crate::Reply<PlantRawList> = self
415            .channel
416            .request("RemoteFortressReader", "GetPlantRaws", request)?;
417        Ok(_response)
418    }
419    ///Method `GetRegionMaps` from the plugin `RemoteFortressReader`
420    pub fn get_region_maps(
421        &mut self,
422    ) -> Result<crate::Reply<RegionMaps>, TChannel::TError> {
423        let request = EmptyMessage::default();
424        let _response: crate::Reply<RegionMaps> = self
425            .channel
426            .request("RemoteFortressReader", "GetRegionMaps", request)?;
427        Ok(_response)
428    }
429    ///Method `GetRegionMapsNew` from the plugin `RemoteFortressReader`
430    pub fn get_region_maps_new(
431        &mut self,
432    ) -> Result<crate::Reply<RegionMaps>, TChannel::TError> {
433        let request = EmptyMessage::default();
434        let _response: crate::Reply<RegionMaps> = self
435            .channel
436            .request("RemoteFortressReader", "GetRegionMapsNew", request)?;
437        Ok(_response)
438    }
439    ///Method `GetReports` from the plugin `RemoteFortressReader`
440    pub fn get_reports(&mut self) -> Result<crate::Reply<Status>, TChannel::TError> {
441        let request = EmptyMessage::default();
442        let _response: crate::Reply<Status> = self
443            .channel
444            .request("RemoteFortressReader", "GetReports", request)?;
445        Ok(_response)
446    }
447    ///Method `GetSideMenu` from the plugin `RemoteFortressReader`
448    pub fn get_side_menu(
449        &mut self,
450    ) -> Result<crate::Reply<SidebarState>, TChannel::TError> {
451        let request = EmptyMessage::default();
452        let _response: crate::Reply<SidebarState> = self
453            .channel
454            .request("RemoteFortressReader", "GetSideMenu", request)?;
455        Ok(_response)
456    }
457    ///Method `GetTiletypeList` from the plugin `RemoteFortressReader`
458    pub fn get_tiletype_list(
459        &mut self,
460    ) -> Result<crate::Reply<TiletypeList>, TChannel::TError> {
461        let request = EmptyMessage::default();
462        let _response: crate::Reply<TiletypeList> = self
463            .channel
464            .request("RemoteFortressReader", "GetTiletypeList", request)?;
465        Ok(_response)
466    }
467    ///Method `GetUnitList` from the plugin `RemoteFortressReader`
468    pub fn get_unit_list(&mut self) -> Result<crate::Reply<UnitList>, TChannel::TError> {
469        let request = EmptyMessage::default();
470        let _response: crate::Reply<UnitList> = self
471            .channel
472            .request("RemoteFortressReader", "GetUnitList", request)?;
473        Ok(_response)
474    }
475    ///Method `GetUnitListInside` from the plugin `RemoteFortressReader`
476    pub fn get_unit_list_inside(
477        &mut self,
478        request: BlockRequest,
479    ) -> Result<crate::Reply<UnitList>, TChannel::TError> {
480        let _response: crate::Reply<UnitList> = self
481            .channel
482            .request("RemoteFortressReader", "GetUnitListInside", request)?;
483        Ok(_response)
484    }
485    ///Method `GetVersionInfo` from the plugin `RemoteFortressReader`
486    pub fn get_version_info(
487        &mut self,
488    ) -> Result<crate::Reply<VersionInfo>, TChannel::TError> {
489        let request = EmptyMessage::default();
490        let _response: crate::Reply<VersionInfo> = self
491            .channel
492            .request("RemoteFortressReader", "GetVersionInfo", request)?;
493        Ok(_response)
494    }
495    ///Method `GetViewInfo` from the plugin `RemoteFortressReader`
496    pub fn get_view_info(&mut self) -> Result<crate::Reply<ViewInfo>, TChannel::TError> {
497        let request = EmptyMessage::default();
498        let _response: crate::Reply<ViewInfo> = self
499            .channel
500            .request("RemoteFortressReader", "GetViewInfo", request)?;
501        Ok(_response)
502    }
503    ///Method `GetWorldMap` from the plugin `RemoteFortressReader`
504    pub fn get_world_map(&mut self) -> Result<crate::Reply<WorldMap>, TChannel::TError> {
505        let request = EmptyMessage::default();
506        let _response: crate::Reply<WorldMap> = self
507            .channel
508            .request("RemoteFortressReader", "GetWorldMap", request)?;
509        Ok(_response)
510    }
511    ///Method `GetWorldMapCenter` from the plugin `RemoteFortressReader`
512    pub fn get_world_map_center(
513        &mut self,
514    ) -> Result<crate::Reply<WorldMap>, TChannel::TError> {
515        let request = EmptyMessage::default();
516        let _response: crate::Reply<WorldMap> = self
517            .channel
518            .request("RemoteFortressReader", "GetWorldMapCenter", request)?;
519        Ok(_response)
520    }
521    ///Method `GetWorldMapNew` from the plugin `RemoteFortressReader`
522    pub fn get_world_map_new(
523        &mut self,
524    ) -> Result<crate::Reply<WorldMap>, TChannel::TError> {
525        let request = EmptyMessage::default();
526        let _response: crate::Reply<WorldMap> = self
527            .channel
528            .request("RemoteFortressReader", "GetWorldMapNew", request)?;
529        Ok(_response)
530    }
531    ///Method `JumpCommand` from the plugin `RemoteFortressReader`
532    pub fn jump_command(
533        &mut self,
534        request: MoveCommandParams,
535    ) -> Result<crate::Reply<()>, TChannel::TError> {
536        let _response: crate::Reply<EmptyMessage> = self
537            .channel
538            .request("RemoteFortressReader", "JumpCommand", request)?;
539        let _response = crate::Reply {
540            reply: (),
541            fragments: _response.fragments,
542        };
543        Ok(_response)
544    }
545    ///Method `MenuQuery` from the plugin `RemoteFortressReader`
546    pub fn menu_query(
547        &mut self,
548    ) -> Result<crate::Reply<MenuContents>, TChannel::TError> {
549        let request = EmptyMessage::default();
550        let _response: crate::Reply<MenuContents> = self
551            .channel
552            .request("RemoteFortressReader", "MenuQuery", request)?;
553        Ok(_response)
554    }
555    ///Method `MiscMoveCommand` from the plugin `RemoteFortressReader`
556    pub fn misc_move_command(
557        &mut self,
558        request: MiscMoveParams,
559    ) -> Result<crate::Reply<()>, TChannel::TError> {
560        let _response: crate::Reply<EmptyMessage> = self
561            .channel
562            .request("RemoteFortressReader", "MiscMoveCommand", request)?;
563        let _response = crate::Reply {
564            reply: (),
565            fragments: _response.fragments,
566        };
567        Ok(_response)
568    }
569    ///Method `MoveCommand` from the plugin `RemoteFortressReader`
570    pub fn move_command(
571        &mut self,
572        request: MoveCommandParams,
573    ) -> Result<crate::Reply<()>, TChannel::TError> {
574        let _response: crate::Reply<EmptyMessage> = self
575            .channel
576            .request("RemoteFortressReader", "MoveCommand", request)?;
577        let _response = crate::Reply {
578            reply: (),
579            fragments: _response.fragments,
580        };
581        Ok(_response)
582    }
583    ///Method `MovementSelectCommand` from the plugin `RemoteFortressReader`
584    pub fn movement_select_command(
585        &mut self,
586        value: i32,
587    ) -> Result<crate::Reply<()>, TChannel::TError> {
588        let request = IntMessage { value };
589        let _response: crate::Reply<EmptyMessage> = self
590            .channel
591            .request("RemoteFortressReader", "MovementSelectCommand", request)?;
592        let _response = crate::Reply {
593            reply: (),
594            fragments: _response.fragments,
595        };
596        Ok(_response)
597    }
598    ///Method `PassKeyboardEvent` from the plugin `RemoteFortressReader`
599    pub fn pass_keyboard_event(
600        &mut self,
601        request: KeyboardEvent,
602    ) -> Result<crate::Reply<()>, TChannel::TError> {
603        let _response: crate::Reply<EmptyMessage> = self
604            .channel
605            .request("RemoteFortressReader", "PassKeyboardEvent", request)?;
606        let _response = crate::Reply {
607            reply: (),
608            fragments: _response.fragments,
609        };
610        Ok(_response)
611    }
612    ///Method `ResetMapHashes` from the plugin `RemoteFortressReader`
613    pub fn reset_map_hashes(&mut self) -> Result<crate::Reply<()>, TChannel::TError> {
614        let request = EmptyMessage::default();
615        let _response: crate::Reply<EmptyMessage> = self
616            .channel
617            .request("RemoteFortressReader", "ResetMapHashes", request)?;
618        let _response = crate::Reply {
619            reply: (),
620            fragments: _response.fragments,
621        };
622        Ok(_response)
623    }
624    ///Method `SendDigCommand` from the plugin `RemoteFortressReader`
625    pub fn send_dig_command(
626        &mut self,
627        request: DigCommand,
628    ) -> Result<crate::Reply<()>, TChannel::TError> {
629        let _response: crate::Reply<EmptyMessage> = self
630            .channel
631            .request("RemoteFortressReader", "SendDigCommand", request)?;
632        let _response = crate::Reply {
633            reply: (),
634            fragments: _response.fragments,
635        };
636        Ok(_response)
637    }
638    ///Method `SetPauseState` from the plugin `RemoteFortressReader`
639    pub fn set_pause_state(
640        &mut self,
641        value: bool,
642    ) -> Result<crate::Reply<()>, TChannel::TError> {
643        let request = SingleBool { value: Some(value) };
644        let _response: crate::Reply<EmptyMessage> = self
645            .channel
646            .request("RemoteFortressReader", "SetPauseState", request)?;
647        let _response = crate::Reply {
648            reply: (),
649            fragments: _response.fragments,
650        };
651        Ok(_response)
652    }
653    ///Method `SetSideMenu` from the plugin `RemoteFortressReader`
654    pub fn set_side_menu(
655        &mut self,
656        request: SidebarCommand,
657    ) -> Result<crate::Reply<()>, TChannel::TError> {
658        let _response: crate::Reply<EmptyMessage> = self
659            .channel
660            .request("RemoteFortressReader", "SetSideMenu", request)?;
661        let _response = crate::Reply {
662            reply: (),
663            fragments: _response.fragments,
664        };
665        Ok(_response)
666    }
667}
668impl<TChannel: crate::Channel> crate::reflection::StubReflection
669for RemoteFortressReader<'_, TChannel> {
670    fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
671        vec![
672            crate ::reflection::RemoteProcedureDescriptor { name : "CheckHashes",
673            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
674            output_type : EmptyMessage::full_name(), }, crate
675            ::reflection::RemoteProcedureDescriptor { name : "CopyScreen", plugin_name :
676            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
677            ScreenCapture::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
678            { name : "GetBlockList", plugin_name : "RemoteFortressReader", input_type :
679            BlockRequest::full_name(), output_type : BlockList::full_name(), }, crate
680            ::reflection::RemoteProcedureDescriptor { name : "GetBuildingDefList",
681            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
682            output_type : BuildingList::full_name(), }, crate
683            ::reflection::RemoteProcedureDescriptor { name : "GetCreatureRaws",
684            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
685            output_type : CreatureRawList::full_name(), }, crate
686            ::reflection::RemoteProcedureDescriptor { name : "GetGameValidity",
687            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
688            output_type : SingleBool::full_name(), }, crate
689            ::reflection::RemoteProcedureDescriptor { name : "GetGrowthList", plugin_name
690            : "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type
691            : MaterialList::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
692            { name : "GetItemList", plugin_name : "RemoteFortressReader", input_type :
693            EmptyMessage::full_name(), output_type : MaterialList::full_name(), }, crate
694            ::reflection::RemoteProcedureDescriptor { name : "GetLanguage", plugin_name :
695            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
696            Language::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
697            name : "GetMapInfo", plugin_name : "RemoteFortressReader", input_type :
698            EmptyMessage::full_name(), output_type : MapInfo::full_name(), }, crate
699            ::reflection::RemoteProcedureDescriptor { name : "GetMaterialList",
700            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
701            output_type : MaterialList::full_name(), }, crate
702            ::reflection::RemoteProcedureDescriptor { name : "GetPartialCreatureRaws",
703            plugin_name : "RemoteFortressReader", input_type : ListRequest::full_name(),
704            output_type : CreatureRawList::full_name(), }, crate
705            ::reflection::RemoteProcedureDescriptor { name : "GetPartialPlantRaws",
706            plugin_name : "RemoteFortressReader", input_type : ListRequest::full_name(),
707            output_type : PlantRawList::full_name(), }, crate
708            ::reflection::RemoteProcedureDescriptor { name : "GetPauseState", plugin_name
709            : "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type
710            : SingleBool::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
711            name : "GetPlantList", plugin_name : "RemoteFortressReader", input_type :
712            BlockRequest::full_name(), output_type : PlantList::full_name(), }, crate
713            ::reflection::RemoteProcedureDescriptor { name : "GetPlantRaws", plugin_name
714            : "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type
715            : PlantRawList::full_name(), }, crate ::reflection::RemoteProcedureDescriptor
716            { name : "GetRegionMaps", plugin_name : "RemoteFortressReader", input_type :
717            EmptyMessage::full_name(), output_type : RegionMaps::full_name(), }, crate
718            ::reflection::RemoteProcedureDescriptor { name : "GetRegionMapsNew",
719            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
720            output_type : RegionMaps::full_name(), }, crate
721            ::reflection::RemoteProcedureDescriptor { name : "GetReports", plugin_name :
722            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
723            Status::full_name(), }, crate ::reflection::RemoteProcedureDescriptor { name
724            : "GetSideMenu", plugin_name : "RemoteFortressReader", input_type :
725            EmptyMessage::full_name(), output_type : SidebarState::full_name(), }, crate
726            ::reflection::RemoteProcedureDescriptor { name : "GetTiletypeList",
727            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
728            output_type : TiletypeList::full_name(), }, crate
729            ::reflection::RemoteProcedureDescriptor { name : "GetUnitList", plugin_name :
730            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
731            UnitList::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
732            name : "GetUnitListInside", plugin_name : "RemoteFortressReader", input_type
733            : BlockRequest::full_name(), output_type : UnitList::full_name(), }, crate
734            ::reflection::RemoteProcedureDescriptor { name : "GetVersionInfo",
735            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
736            output_type : VersionInfo::full_name(), }, crate
737            ::reflection::RemoteProcedureDescriptor { name : "GetViewInfo", plugin_name :
738            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
739            ViewInfo::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
740            name : "GetWorldMap", plugin_name : "RemoteFortressReader", input_type :
741            EmptyMessage::full_name(), output_type : WorldMap::full_name(), }, crate
742            ::reflection::RemoteProcedureDescriptor { name : "GetWorldMapCenter",
743            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
744            output_type : WorldMap::full_name(), }, crate
745            ::reflection::RemoteProcedureDescriptor { name : "GetWorldMapNew",
746            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
747            output_type : WorldMap::full_name(), }, crate
748            ::reflection::RemoteProcedureDescriptor { name : "JumpCommand", plugin_name :
749            "RemoteFortressReader", input_type : MoveCommandParams::full_name(),
750            output_type : EmptyMessage::full_name(), }, crate
751            ::reflection::RemoteProcedureDescriptor { name : "MenuQuery", plugin_name :
752            "RemoteFortressReader", input_type : EmptyMessage::full_name(), output_type :
753            MenuContents::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
754            name : "MiscMoveCommand", plugin_name : "RemoteFortressReader", input_type :
755            MiscMoveParams::full_name(), output_type : EmptyMessage::full_name(), },
756            crate ::reflection::RemoteProcedureDescriptor { name : "MoveCommand",
757            plugin_name : "RemoteFortressReader", input_type :
758            MoveCommandParams::full_name(), output_type : EmptyMessage::full_name(), },
759            crate ::reflection::RemoteProcedureDescriptor { name :
760            "MovementSelectCommand", plugin_name : "RemoteFortressReader", input_type :
761            IntMessage::full_name(), output_type : EmptyMessage::full_name(), }, crate
762            ::reflection::RemoteProcedureDescriptor { name : "PassKeyboardEvent",
763            plugin_name : "RemoteFortressReader", input_type :
764            KeyboardEvent::full_name(), output_type : EmptyMessage::full_name(), }, crate
765            ::reflection::RemoteProcedureDescriptor { name : "ResetMapHashes",
766            plugin_name : "RemoteFortressReader", input_type : EmptyMessage::full_name(),
767            output_type : EmptyMessage::full_name(), }, crate
768            ::reflection::RemoteProcedureDescriptor { name : "SendDigCommand",
769            plugin_name : "RemoteFortressReader", input_type : DigCommand::full_name(),
770            output_type : EmptyMessage::full_name(), }, crate
771            ::reflection::RemoteProcedureDescriptor { name : "SetPauseState", plugin_name
772            : "RemoteFortressReader", input_type : SingleBool::full_name(), output_type :
773            EmptyMessage::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
774            name : "SetSideMenu", plugin_name : "RemoteFortressReader", input_type :
775            SidebarCommand::full_name(), output_type : EmptyMessage::full_name(), },
776        ]
777    }
778}
779///RPC for the "mypluginname" plugin.
780pub struct Mypluginname<'a, TChannel: crate::Channel> {
781    ///Reference to the client to exchange messages.
782    pub channel: &'a mut TChannel,
783}
784impl<'a, TChannel: crate::Channel> Mypluginname<'a, TChannel> {
785    ///Initialize the plugin from a channel to DFHack.
786    pub fn new(channel: &'a mut TChannel) -> Self {
787        Self { channel }
788    }
789    ///Method `RenameBuilding` from the plugin `mypluginname`
790    pub fn rename_building(
791        &mut self,
792        request: RenameBuildingIn,
793    ) -> Result<crate::Reply<()>, TChannel::TError> {
794        let _response: crate::Reply<EmptyMessage> = self
795            .channel
796            .request("mypluginname", "RenameBuilding", request)?;
797        let _response = crate::Reply {
798            reply: (),
799            fragments: _response.fragments,
800        };
801        Ok(_response)
802    }
803    ///Method `RenameSquad` from the plugin `mypluginname`
804    pub fn rename_squad(
805        &mut self,
806        request: RenameSquadIn,
807    ) -> Result<crate::Reply<()>, TChannel::TError> {
808        let _response: crate::Reply<EmptyMessage> = self
809            .channel
810            .request("mypluginname", "RenameSquad", request)?;
811        let _response = crate::Reply {
812            reply: (),
813            fragments: _response.fragments,
814        };
815        Ok(_response)
816    }
817    ///Method `RenameUnit` from the plugin `mypluginname`
818    pub fn rename_unit(
819        &mut self,
820        request: RenameUnitIn,
821    ) -> Result<crate::Reply<()>, TChannel::TError> {
822        let _response: crate::Reply<EmptyMessage> = self
823            .channel
824            .request("mypluginname", "RenameUnit", request)?;
825        let _response = crate::Reply {
826            reply: (),
827            fragments: _response.fragments,
828        };
829        Ok(_response)
830    }
831}
832impl<TChannel: crate::Channel> crate::reflection::StubReflection
833for Mypluginname<'_, TChannel> {
834    fn list_methods() -> Vec<crate::reflection::RemoteProcedureDescriptor> {
835        vec![
836            crate ::reflection::RemoteProcedureDescriptor { name : "RenameBuilding",
837            plugin_name : "mypluginname", input_type : RenameBuildingIn::full_name(),
838            output_type : EmptyMessage::full_name(), }, crate
839            ::reflection::RemoteProcedureDescriptor { name : "RenameSquad", plugin_name :
840            "mypluginname", input_type : RenameSquadIn::full_name(), output_type :
841            EmptyMessage::full_name(), }, crate ::reflection::RemoteProcedureDescriptor {
842            name : "RenameUnit", plugin_name : "mypluginname", input_type :
843            RenameUnitIn::full_name(), output_type : EmptyMessage::full_name(), },
844        ]
845    }
846}