diff options
| author | Alexander Gavrilov | 2012-03-18 13:52:39 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-18 13:52:39 +0400 |
| commit | e33414fa6923d0eb917046dcc24f55135622d80b (patch) | |
| tree | 863390da04def1db4c4e546c613d741d8c580c9b /library/proto | |
| parent | 415ae35dfff9b0479af9613ed03fe3c250966ff7 (diff) | |
| download | dfhack-e33414fa6923d0eb917046dcc24f55135622d80b.tar.gz dfhack-e33414fa6923d0eb917046dcc24f55135622d80b.tar.bz2 dfhack-e33414fa6923d0eb917046dcc24f55135622d80b.tar.xz | |
Export unit curse, squad, death and burrow info.
Diffstat (limited to 'library/proto')
| -rw-r--r-- | library/proto/Basic.proto | 31 | ||||
| -rw-r--r-- | library/proto/BasicApi.proto | 5 |
2 files changed, 33 insertions, 3 deletions
diff --git a/library/proto/Basic.proto b/library/proto/Basic.proto index 145727ce..2c11aa67 100644 --- a/library/proto/Basic.proto +++ b/library/proto/Basic.proto @@ -79,6 +79,21 @@ message NameInfo { optional string english_name = 5; }; +message NameTriple { + required string normal = 1; + optional string plural = 2; + optional string adjective = 3; +}; + +message UnitCurseInfo { + required fixed32 add_tags1 = 1; + required fixed32 rem_tags1 = 2; + required fixed32 add_tags2 = 3; + required fixed32 rem_tags2 = 4; + + optional NameTriple name = 5; +}; + message SkillInfo { required int32 id = 1; required int32 level = 2; @@ -88,6 +103,10 @@ message SkillInfo { message BasicUnitInfo { required int32 unit_id = 1; + required int32 pos_x = 13; + required int32 pos_y = 14; + required int32 pos_z = 15; + optional NameInfo name = 2; required fixed32 flags1 = 3; @@ -101,15 +120,21 @@ message BasicUnitInfo { optional int32 civ_id = 9 [default = -1]; optional int32 histfig_id = 10 [default = -1]; + optional int32 death_id = 17 [default = -1]; + optional uint32 death_flags = 18; + + optional int32 squad_id = 19 [default = -1]; + optional int32 squad_position = 20 [default = -1]; + // IF mask.labors: repeated int32 labors = 11; // IF mask.skills: repeated SkillInfo skills = 12; - required int32 pos_x = 13; - required int32 pos_y = 14; - required int32 pos_z = 15; + optional UnitCurseInfo curse = 16; + + repeated int32 burrows = 21; }; message BasicUnitInfoMask { diff --git a/library/proto/BasicApi.proto b/library/proto/BasicApi.proto index 26704411..cc251a7c 100644 --- a/library/proto/BasicApi.proto +++ b/library/proto/BasicApi.proto @@ -37,6 +37,11 @@ message ListEnumsOut { repeated EnumItemName unit_labor = 6; repeated EnumItemName job_skill = 7; + + repeated EnumItemName cie_add_tag_mask1 = 8; + repeated EnumItemName cie_add_tag_mask2 = 9; + + repeated EnumItemName death_info_flags = 10; }; message ListMaterialsIn { |
