pub struct RemoteFortressReader<'a, TChannel: Channel> {
pub channel: &'a mut TChannel,
}Expand description
RPC for the “RemoteFortressReader” plugin.
Fields§
§channel: &'a mut TChannelReference to the client to exchange messages.
Implementations§
Source§impl<'a, TChannel: Channel> RemoteFortressReader<'a, TChannel>
impl<'a, TChannel: Channel> RemoteFortressReader<'a, TChannel>
Sourcepub fn new(channel: &'a mut TChannel) -> Self
pub fn new(channel: &'a mut TChannel) -> Self
Initialize the plugin from a channel to DFHack.
Sourcepub fn check_hashes(&mut self) -> Result<Reply<()>, TChannel::TError>
pub fn check_hashes(&mut self) -> Result<Reply<()>, TChannel::TError>
Method CheckHashes from the plugin RemoteFortressReader
Sourcepub fn copy_screen(&mut self) -> Result<Reply<ScreenCapture>, TChannel::TError>
pub fn copy_screen(&mut self) -> Result<Reply<ScreenCapture>, TChannel::TError>
Method CopyScreen from the plugin RemoteFortressReader
Sourcepub fn get_block_list(
&mut self,
request: BlockRequest,
) -> Result<Reply<BlockList>, TChannel::TError>
pub fn get_block_list( &mut self, request: BlockRequest, ) -> Result<Reply<BlockList>, TChannel::TError>
Method GetBlockList from the plugin RemoteFortressReader
Sourcepub fn get_building_def_list(
&mut self,
) -> Result<Reply<BuildingList>, TChannel::TError>
pub fn get_building_def_list( &mut self, ) -> Result<Reply<BuildingList>, TChannel::TError>
Method GetBuildingDefList from the plugin RemoteFortressReader
Sourcepub fn get_creature_raws(
&mut self,
) -> Result<Reply<CreatureRawList>, TChannel::TError>
pub fn get_creature_raws( &mut self, ) -> Result<Reply<CreatureRawList>, TChannel::TError>
Method GetCreatureRaws from the plugin RemoteFortressReader
Sourcepub fn get_game_validity(&mut self) -> Result<Reply<bool>, TChannel::TError>
pub fn get_game_validity(&mut self) -> Result<Reply<bool>, TChannel::TError>
Method GetGameValidity from the plugin RemoteFortressReader
Sourcepub fn get_growth_list(
&mut self,
) -> Result<Reply<MaterialList>, TChannel::TError>
pub fn get_growth_list( &mut self, ) -> Result<Reply<MaterialList>, TChannel::TError>
Method GetGrowthList from the plugin RemoteFortressReader
Sourcepub fn get_item_list(&mut self) -> Result<Reply<MaterialList>, TChannel::TError>
pub fn get_item_list(&mut self) -> Result<Reply<MaterialList>, TChannel::TError>
Method GetItemList from the plugin RemoteFortressReader
Sourcepub fn get_language(&mut self) -> Result<Reply<Language>, TChannel::TError>
pub fn get_language(&mut self) -> Result<Reply<Language>, TChannel::TError>
Method GetLanguage from the plugin RemoteFortressReader
Sourcepub fn get_map_info(&mut self) -> Result<Reply<MapInfo>, TChannel::TError>
pub fn get_map_info(&mut self) -> Result<Reply<MapInfo>, TChannel::TError>
Method GetMapInfo from the plugin RemoteFortressReader
Sourcepub fn get_material_list(
&mut self,
) -> Result<Reply<MaterialList>, TChannel::TError>
pub fn get_material_list( &mut self, ) -> Result<Reply<MaterialList>, TChannel::TError>
Method GetMaterialList from the plugin RemoteFortressReader
Sourcepub fn get_partial_creature_raws(
&mut self,
request: ListRequest,
) -> Result<Reply<CreatureRawList>, TChannel::TError>
pub fn get_partial_creature_raws( &mut self, request: ListRequest, ) -> Result<Reply<CreatureRawList>, TChannel::TError>
Method GetPartialCreatureRaws from the plugin RemoteFortressReader
Sourcepub fn get_partial_plant_raws(
&mut self,
request: ListRequest,
) -> Result<Reply<PlantRawList>, TChannel::TError>
pub fn get_partial_plant_raws( &mut self, request: ListRequest, ) -> Result<Reply<PlantRawList>, TChannel::TError>
Method GetPartialPlantRaws from the plugin RemoteFortressReader
Sourcepub fn get_pause_state(&mut self) -> Result<Reply<bool>, TChannel::TError>
pub fn get_pause_state(&mut self) -> Result<Reply<bool>, TChannel::TError>
Method GetPauseState from the plugin RemoteFortressReader
Sourcepub fn get_plant_list(
&mut self,
request: BlockRequest,
) -> Result<Reply<PlantList>, TChannel::TError>
pub fn get_plant_list( &mut self, request: BlockRequest, ) -> Result<Reply<PlantList>, TChannel::TError>
Method GetPlantList from the plugin RemoteFortressReader
Sourcepub fn get_plant_raws(
&mut self,
) -> Result<Reply<PlantRawList>, TChannel::TError>
pub fn get_plant_raws( &mut self, ) -> Result<Reply<PlantRawList>, TChannel::TError>
Method GetPlantRaws from the plugin RemoteFortressReader
Sourcepub fn get_region_maps(&mut self) -> Result<Reply<RegionMaps>, TChannel::TError>
pub fn get_region_maps(&mut self) -> Result<Reply<RegionMaps>, TChannel::TError>
Method GetRegionMaps from the plugin RemoteFortressReader
Sourcepub fn get_region_maps_new(
&mut self,
) -> Result<Reply<RegionMaps>, TChannel::TError>
pub fn get_region_maps_new( &mut self, ) -> Result<Reply<RegionMaps>, TChannel::TError>
Method GetRegionMapsNew from the plugin RemoteFortressReader
Sourcepub fn get_reports(&mut self) -> Result<Reply<Status>, TChannel::TError>
pub fn get_reports(&mut self) -> Result<Reply<Status>, TChannel::TError>
Method GetReports from the plugin RemoteFortressReader
Method GetSideMenu from the plugin RemoteFortressReader
Sourcepub fn get_tiletype_list(
&mut self,
) -> Result<Reply<TiletypeList>, TChannel::TError>
pub fn get_tiletype_list( &mut self, ) -> Result<Reply<TiletypeList>, TChannel::TError>
Method GetTiletypeList from the plugin RemoteFortressReader
Sourcepub fn get_unit_list(&mut self) -> Result<Reply<UnitList>, TChannel::TError>
pub fn get_unit_list(&mut self) -> Result<Reply<UnitList>, TChannel::TError>
Method GetUnitList from the plugin RemoteFortressReader
Sourcepub fn get_unit_list_inside(
&mut self,
request: BlockRequest,
) -> Result<Reply<UnitList>, TChannel::TError>
pub fn get_unit_list_inside( &mut self, request: BlockRequest, ) -> Result<Reply<UnitList>, TChannel::TError>
Method GetUnitListInside from the plugin RemoteFortressReader
Sourcepub fn get_version_info(
&mut self,
) -> Result<Reply<VersionInfo>, TChannel::TError>
pub fn get_version_info( &mut self, ) -> Result<Reply<VersionInfo>, TChannel::TError>
Method GetVersionInfo from the plugin RemoteFortressReader
Sourcepub fn get_view_info(&mut self) -> Result<Reply<ViewInfo>, TChannel::TError>
pub fn get_view_info(&mut self) -> Result<Reply<ViewInfo>, TChannel::TError>
Method GetViewInfo from the plugin RemoteFortressReader
Sourcepub fn get_world_map(&mut self) -> Result<Reply<WorldMap>, TChannel::TError>
pub fn get_world_map(&mut self) -> Result<Reply<WorldMap>, TChannel::TError>
Method GetWorldMap from the plugin RemoteFortressReader
Sourcepub fn get_world_map_center(
&mut self,
) -> Result<Reply<WorldMap>, TChannel::TError>
pub fn get_world_map_center( &mut self, ) -> Result<Reply<WorldMap>, TChannel::TError>
Method GetWorldMapCenter from the plugin RemoteFortressReader
Sourcepub fn get_world_map_new(&mut self) -> Result<Reply<WorldMap>, TChannel::TError>
pub fn get_world_map_new(&mut self) -> Result<Reply<WorldMap>, TChannel::TError>
Method GetWorldMapNew from the plugin RemoteFortressReader
Sourcepub fn jump_command(
&mut self,
request: MoveCommandParams,
) -> Result<Reply<()>, TChannel::TError>
pub fn jump_command( &mut self, request: MoveCommandParams, ) -> Result<Reply<()>, TChannel::TError>
Method JumpCommand from the plugin RemoteFortressReader
Method MenuQuery from the plugin RemoteFortressReader
Sourcepub fn misc_move_command(
&mut self,
request: MiscMoveParams,
) -> Result<Reply<()>, TChannel::TError>
pub fn misc_move_command( &mut self, request: MiscMoveParams, ) -> Result<Reply<()>, TChannel::TError>
Method MiscMoveCommand from the plugin RemoteFortressReader
Sourcepub fn move_command(
&mut self,
request: MoveCommandParams,
) -> Result<Reply<()>, TChannel::TError>
pub fn move_command( &mut self, request: MoveCommandParams, ) -> Result<Reply<()>, TChannel::TError>
Method MoveCommand from the plugin RemoteFortressReader
Sourcepub fn movement_select_command(
&mut self,
value: i32,
) -> Result<Reply<()>, TChannel::TError>
pub fn movement_select_command( &mut self, value: i32, ) -> Result<Reply<()>, TChannel::TError>
Method MovementSelectCommand from the plugin RemoteFortressReader
Sourcepub fn pass_keyboard_event(
&mut self,
request: KeyboardEvent,
) -> Result<Reply<()>, TChannel::TError>
pub fn pass_keyboard_event( &mut self, request: KeyboardEvent, ) -> Result<Reply<()>, TChannel::TError>
Method PassKeyboardEvent from the plugin RemoteFortressReader
Sourcepub fn reset_map_hashes(&mut self) -> Result<Reply<()>, TChannel::TError>
pub fn reset_map_hashes(&mut self) -> Result<Reply<()>, TChannel::TError>
Method ResetMapHashes from the plugin RemoteFortressReader
Sourcepub fn send_dig_command(
&mut self,
request: DigCommand,
) -> Result<Reply<()>, TChannel::TError>
pub fn send_dig_command( &mut self, request: DigCommand, ) -> Result<Reply<()>, TChannel::TError>
Method SendDigCommand from the plugin RemoteFortressReader
Sourcepub fn set_pause_state(
&mut self,
value: bool,
) -> Result<Reply<()>, TChannel::TError>
pub fn set_pause_state( &mut self, value: bool, ) -> Result<Reply<()>, TChannel::TError>
Method SetPauseState from the plugin RemoteFortressReader
Method SetSideMenu from the plugin RemoteFortressReader