Skip to content

Commit

Permalink
Add some research into job postings
Browse files Browse the repository at this point in the history
Mostly information provided by Toady

Needed for DFHack/dfhack#741
  • Loading branch information
lethosor committed Nov 26, 2015
1 parent 1bc4f61 commit bb950d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion df.jobs.xml
Expand Up @@ -90,7 +90,7 @@
<struct-type type-name='job' key-field='id'>
<int32_t name='id' init-value='-1'/>
<pointer name='list_link' type-name='job_list_link'/>
<int32_t name='unk_v4020_1' init-value='-1' comment='v0.40.20'/>
<int32_t name='posting_index' init-value='-1' comment='v0.40.20'/>

<enum name='job_type' base-type='int16_t' type-name='job_type'/>
<int32_t name='job_subtype' init-value='-1'/> surgery only ?
Expand Down
12 changes: 7 additions & 5 deletions df.world.xml
Expand Up @@ -471,12 +471,14 @@
-- Jobs and projectiles

<df-linked-list name='job_list' type-name='job_list_link'/>
<stl-vector>
<stl-vector name='job_postings' comment='entries never removed'>
<pointer>
<int32_t name='unk_0'/>
<pointer type-name='job' name='job'/>
<int32_t name='flags'/>
<int32_t/> not saved
<int32_t name='idx' comment='equal to position in vector'/>
<pointer type-name='job' name='job' comment='bad if dead flag is set'/>
<bitfield name='flags' base-type='int32_t'>
<flag-bit name='dead'/>
</bitfield>
<int32_t comment='not saved'/>
</pointer>
</stl-vector>

Expand Down

0 comments on commit bb950d9

Please sign in to comment.