dfhack/library/modules
Stephen Baynham 74f5df99db Add job remove method
Job remove eliminates a job's worker & holder references, if any, puts
the worker on cd, if appropriate, removes the job's postings, eliminates
the job from the global linked list, and then finally deletes it.  This
code was tested by incorporating it into autochop and it does make the
plugin work.  However, chop jobs don't have holder building references,
and anyway, with DF being 90% edge case by volume, this could use a heck
of a lot more testing.

I saw elsewhere code that prevented worker removal if the job was a
special job, and that made me feel funny so I made the job remove method
not work if the job is a special job.
2016-11-17 19:54:41 -08:00
..
Buildings.cpp buildingplan: Support floodgates, grates, bars 2016-01-31 14:50:07 -05:00
Burrows.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
Constructions.cpp Fix GCC compile error 2015-11-06 20:05:14 -05:00
Engravings.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
EventManager.cpp Add a check to the histfig fix and tweak NEWS. 2016-03-10 08:50:03 -05:00
Filesystem.cpp Make Filesystem::is* functions handle nonexistent paths properly 2015-09-19 17:34:58 -04:00
Graphic.cpp Digging Invaders: merged eventManager and recent. 2013-01-02 11:26:30 -05:00
Gui.cpp Find job in job screen 2016-05-14 16:07:27 -04:00
Items.cpp Modify DFHack to handle new produce() prototype. Major thanks to lethosor, and ragundo for their help in this 2016-06-13 16:57:45 -04:00
Job.cpp Add job remove method 2016-11-17 19:54:41 -08:00
MapCache.cpp Fix MapCache compiling error on Windows 2015-01-05 17:28:42 -05:00
Maps.cpp Fix whitespace issues 2015-02-14 22:53:06 -05:00
Materials.cpp Add 'undisturbed' flag to job item checks 2015-10-26 02:19:41 +01:00
Notes.cpp Make it build and run on linux (no stonesense, df2mc, dfusion) 2012-02-09 03:07:26 +01:00
Once.cpp New module: Once. Intended to help prevent debug error message spam. 2013-03-23 22:38:33 -04:00
Random.cpp Add missing import/export info for MersenneRNG::unitvector<> 2014-03-25 13:30:21 -05:00
Renderer.cpp Add Renderer module - safer way to install custom renderers 2015-10-21 17:18:39 -04:00
Screen.cpp Prevent plugins with active viewscreens from being unloaded 2016-01-01 11:15:29 -05:00
Translation.cpp Made DFHack buildable. Also added plant proto definitions 2014-07-23 19:57:47 +05:30
Units.cpp Expose new unit functions to lua and add some basic safety checks 2016-04-23 21:52:50 -04:00
Vermin.cpp Get rid of Simple namespace, Gui module is now a namespace. 2012-03-03 14:38:24 +01:00
Windows.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
World.cpp exportlegends: fix day/month issues more reliably 2016-01-09 19:28:12 -05:00
kitchen.cpp Merge further changes (???) 2012-09-10 09:19:21 -04:00