dfhack/plugins/lua
Myk Taylor 82013c0c5e prep buildingplan for core algorithm changes
Lots of refactoring and reorganizing, with only cosmetic player-visible changes.

- show quickfort mode hotlkey label regardless of whether the current building type has buildingplan enabled. before, it was only shown after the user enabled buildingplan for the current building. this eliminates the extra step when enabling quickfort mode, which force-enables all building types.
- changed signature of lua-exported isPlannableBuilding to take subtype
  and custom type in addition to building type. this is only used by
  quickfort, and it already sends all three params in preparation for
  this change
- added lua-exported scheduleCycle(), which is like doCycle(), but only
  takes effect on the next non-paused frame. this lets quickfort
  run only one buildingplan cycle regardless of how many #build
  blueprints were run
- declared a few dfhack library methods and params const so buildingplan
  could call them from const methods
- converted buildingplan internal debug logging fn to have a printf api
- reshaped buildingplan-planner API and refactored implementation in
  preparation for upcoming core algorithm changes for supporing all
  building types (no externally-visible functionality changes)
  - changed df::building_type params to type, subtype, custom tuple keys
  - introduced capability to return multiple filters per building type
    (though the current buildings all only have one filter per)
- split monolith hook functions in buildingplan.cpp into one per scope.
  this significantly cleans up the code and preps the hooks to handle
  iterating through multiple item filters.
- got rid of send_key function and replaced with better reporting of
  whether keys have been handled
2020-10-16 13:52:23 -07:00
..
sort follow rename unit.military.squad_index to squad_id in df-structures 2012-10-20 22:35:39 +02:00
blueprint.lua update comments 2018-05-08 13:04:14 -07:00
building-hacks.lua Merge remote-tracking branch 'KlonZK/patch-1' into develop 2018-07-20 23:16:28 -04:00
buildingplan.lua prep buildingplan for core algorithm changes 2020-10-16 13:52:23 -07:00
burrows.lua Split off the burrows api from Maps and Units. 2012-04-26 12:56:28 +04:00
confirm.lua Add confirmation for convicting dwarves of crimes 2020-06-20 12:06:50 -04:00
cxxrandom.lua [Release] cxxrandom v2.0.1 2019-04-15 16:21:54 -07:00
dwarfmonitor.lua dwarfmonitor.lua: use dmerror() consistently 2018-05-21 21:23:52 -04:00
eventful.lua Show sidebar when moving from screen to screen 2016-04-10 16:51:58 +03:00
liquids.lua Expose the liquids plugin engine to lua, and make a wrapper gui script. 2012-08-25 10:37:03 +04:00
luasocket.lua Fix luasocket receive with byte count 2017-08-12 15:42:56 +03:00
map-render.lua Also rename the plugin lua file 2018-10-12 10:44:56 +03:00
pathable.lua Add new "pathable" plugin 2017-07-05 23:54:55 -04:00
power-meter.lua Implement a pressure plate sensitive to machine power. 2012-09-06 12:37:29 +04:00
rename.lua Support renaming some buildings, and arbitrary units, via gui script. 2012-09-05 21:27:42 +04:00
rendermax.lua Another file forgotten 2014-03-07 19:58:27 +02:00
siege-engine.lua Fix a few Lua 5.3-related errors 2018-08-02 14:36:15 -04:00
sort.lua Support sorting items in the trade screens. 2012-05-18 19:18:49 +04:00
stockflow.lua Many build fixes 2018-03-10 16:53:45 -05:00
stockpiles.lua stockpiles: Restrict characters in filenames when saving 2015-07-29 14:17:14 -04:00
workflow.lua Fix crafts advanced constraints in workflow 2018-07-04 19:10:51 +03:00
xlsxreader.lua update sample code for xlsxreader to use finalize 2020-08-10 09:18:49 -07:00
zone.lua Added lua GUI front-end for autobutcher. 2013-04-24 23:37:05 +12:00