-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrapper.gen.go
35 lines (25 loc) · 1.3 KB
/
wrapper.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Package isoworldremote contains protocol buffer definitions for the isoworldremote DFHack plugin.
//
// See https://dfhack.readthedocs.io/en/latest/docs/Plugins.html#isoworldremote for more details.
package isoworldremote
import (
"github.com/BenLubar/dfhackrpc"
)
// CallGetEmbarkTile is a convenience wrapper around the isoworldremote::GetEmbarkTile RPC method.
func CallGetEmbarkTile(client *dfhackrpc.Client, request *TileRequest) (*EmbarkTile, dfhackrpc.CommandResult, error) {
var response EmbarkTile
rv, err := client.CallPlugin("isoworldremote", "GetEmbarkTile", request, &response)
return &response, rv, err
}
// CallGetEmbarkInfo is a convenience wrapper around the isoworldremote::GetEmbarkInfo RPC method.
func CallGetEmbarkInfo(client *dfhackrpc.Client, request *MapRequest) (*MapReply, dfhackrpc.CommandResult, error) {
var response MapReply
rv, err := client.CallPlugin("isoworldremote", "GetEmbarkInfo", request, &response)
return &response, rv, err
}
// CallGetRawNames is a convenience wrapper around the isoworldremote::GetRawNames RPC method.
func CallGetRawNames(client *dfhackrpc.Client, request *MapRequest) (*RawNames, dfhackrpc.CommandResult, error) {
var response RawNames
rv, err := client.CallPlugin("isoworldremote", "GetRawNames", request, &response)
return &response, rv, err
}