Struct dfhack_remote::Rename
source · Expand description
RPC for the “rename” plugin.
Fields§
§channel: &'a mut TChannelReference to the client to exchange messages.
Implementations§
source§impl<'a, TChannel> Rename<'a, TChannel>where
TChannel: Channel,
impl<'a, TChannel> Rename<'a, TChannel>where
TChannel: Channel,
sourcepub fn new(channel: &'a mut TChannel) -> Rename<'a, TChannel>
pub fn new(channel: &'a mut TChannel) -> Rename<'a, TChannel>
Initialize the plugin from a channel to DFHack.
sourcepub fn rename_building(
&mut self,
request: RenameBuildingIn
) -> Result<(), <TChannel as Channel>::TError>
pub fn rename_building(
&mut self,
request: RenameBuildingIn
) -> Result<(), <TChannel as Channel>::TError>
Method RenameBuilding from the plugin rename
sourcepub fn rename_squad(
&mut self,
request: RenameSquadIn
) -> Result<(), <TChannel as Channel>::TError>
pub fn rename_squad(
&mut self,
request: RenameSquadIn
) -> Result<(), <TChannel as Channel>::TError>
Method RenameSquad from the plugin rename
sourcepub fn rename_unit(
&mut self,
request: RenameUnitIn
) -> Result<(), <TChannel as Channel>::TError>
pub fn rename_unit(
&mut self,
request: RenameUnitIn
) -> Result<(), <TChannel as Channel>::TError>
Method RenameUnit from the plugin rename