diff options
| author | Alexander Gavrilov | 2012-03-18 15:35:38 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-18 15:35:38 +0400 |
| commit | d4626f9751be95e392cf1a0862648bae1e2d0e43 (patch) | |
| tree | 91a8f0bc890e97b5dbeb0c60fd56dbece854949f /library/proto | |
| parent | e33414fa6923d0eb917046dcc24f55135622d80b (diff) | |
| download | dfhack-d4626f9751be95e392cf1a0862648bae1e2d0e43.tar.gz dfhack-d4626f9751be95e392cf1a0862648bae1e2d0e43.tar.bz2 dfhack-d4626f9751be95e392cf1a0862648bae1e2d0e43.tar.xz | |
Add unit professions and filtering on status.
Diffstat (limited to 'library/proto')
| -rw-r--r-- | library/proto/Basic.proto | 5 | ||||
| -rw-r--r-- | library/proto/BasicApi.proto | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/library/proto/Basic.proto b/library/proto/Basic.proto index 2c11aa67..ead41cd8 100644 --- a/library/proto/Basic.proto +++ b/library/proto/Basic.proto @@ -123,9 +123,13 @@ message BasicUnitInfo { optional int32 death_id = 17 [default = -1]; optional uint32 death_flags = 18; + // IF mask.profession: optional int32 squad_id = 19 [default = -1]; optional int32 squad_position = 20 [default = -1]; + optional int32 profession = 22 [default = -1]; + optional string custom_profession = 23; + // IF mask.labors: repeated int32 labors = 11; @@ -140,6 +144,7 @@ message BasicUnitInfo { message BasicUnitInfoMask { optional bool labors = 1 [default = false]; optional bool skills = 2 [default = false]; + optional bool profession = 3 [default = false]; }; message BasicSquadInfo { diff --git a/library/proto/BasicApi.proto b/library/proto/BasicApi.proto index cc251a7c..7b105ee8 100644 --- a/library/proto/BasicApi.proto +++ b/library/proto/BasicApi.proto @@ -42,6 +42,8 @@ message ListEnumsOut { repeated EnumItemName cie_add_tag_mask2 = 9; repeated EnumItemName death_info_flags = 10; + + repeated EnumItemName profession = 11; }; message ListMaterialsIn { @@ -67,8 +69,13 @@ message ListUnitsIn { repeated int32 id_list = 2; // All units matching: + optional bool scan_all = 5; + optional int32 race = 3; optional int32 civ_id = 4; + optional bool dead = 6; // i.e. passive corpse + optional bool alive = 7; // i.e. not dead or undead + optional bool sane = 8; // not dead, ghost, zombie, or insane }; message ListUnitsOut { repeated BasicUnitInfo value = 1; |
