diff options
| author | Alexander Gavrilov | 2012-03-15 13:01:23 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-15 13:01:23 +0400 |
| commit | 87f925e72e7c6f923a595cc930728483a3f1422e (patch) | |
| tree | 4da81e9346e9f21599cea8c7a2d95d8da4628e2e /plugins/proto | |
| parent | e7851f5abdd1a84d29020f2789efc0f932284bf0 (diff) | |
| download | dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.gz dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.bz2 dfhack-87f925e72e7c6f923a595cc930728483a3f1422e.tar.xz | |
Add support for exporting functions from plugins, with example in rename.
TODO: test by actually calling them remotely.
Diffstat (limited to 'plugins/proto')
| -rw-r--r-- | plugins/proto/.gitignore | 3 | ||||
| -rw-r--r-- | plugins/proto/rename.proto | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/plugins/proto/.gitignore b/plugins/proto/.gitignore new file mode 100644 index 00000000..befabf79 --- /dev/null +++ b/plugins/proto/.gitignore @@ -0,0 +1,3 @@ +*.pb.cc +*.pb.cc.rule +*.pb.h diff --git a/plugins/proto/rename.proto b/plugins/proto/rename.proto new file mode 100644 index 00000000..a139ceaa --- /dev/null +++ b/plugins/proto/rename.proto @@ -0,0 +1,17 @@ +package dfproto; + +option optimize_for = LITE_RUNTIME; + +message RenameSquadRq { + required int32 squad_id = 1; + + optional string nickname = 2; + optional string alias = 3; +} + +message RenameUnitRq { + required int32 unit_id = 1; + + optional string nickname = 2; + optional string profession = 3; +} |
