dfhack/library
Alexander Gavrilov b76bdad50f Implement recursive transfer of values from lua to c++ structures.
E.g. df.global.cursor = { x = 1, y = 2, z = 3 }. The lua data
must be represented by raw lua tables.

For structs, the entries in the table are assigned to matching fields.

For containers, if a 'resize' field is missing or nil, the table is
treated like 1-based lua array, and the container is resized to match
its # length. Otherwise, the field must be either an explicit number,
true or false. If it is true, the size is selected by the highest index
in the table. After that, entries are copied using 0-based indices.

For pointers, the table must match the target object. If the pointer
is null, the object is auto-allocated; this can be controlled using
the 'new' field, the value of which will be passed to df.new().
2012-03-28 16:58:51 +08:00
..
doc Many tweaks to plugins, reorganized the build system and removed more cruft. 2011-08-14 08:42:21 +02:00
include Implement recursive transfer of values from lua to c++ structures. 2012-03-28 16:58:51 +08:00
modules Tweaks and cleanups 2012-03-24 12:13:51 +01:00
proto Add a few comments. 2012-03-19 11:33:30 +04:00
xml@b41c666c6b Track structures 2012-03-26 16:13:41 +02:00
CMakeLists.txt Merge remote-tracking branch 'peterix/master' 2012-03-24 16:30:07 +04:00
ColorText.cpp Improve support for void RPC functions, dfhack-run, etc. 2012-03-15 11:07:43 +04:00
Console-linux.cpp Add a tiletype function to get basic shapes from shapes. Track modules. 2012-03-16 20:41:07 +01:00
Console-windows.cpp Make plugins accept explicit output stream references. 2012-03-10 15:55:42 +04:00
Core.cpp A number of interface tweaks in RemoteClient. 2012-03-16 14:11:46 +04:00
DataDefs.cpp Fix warnings. 2012-03-26 12:42:05 +04:00
DataStatics.cpp Add support for primitive type fields in lua wrapper. 2012-03-20 13:56:29 +04:00
DataStaticsCtor.cpp Header changes/cleanup. 2011-12-31 12:48:42 +01:00
DataStaticsFields.cpp Make enum attributes accessible through the lua wrapper. 2012-03-25 19:12:59 +04:00
Hooks-egg.cpp Fix normal hooks. 2012-02-28 12:59:02 +01:00
Hooks-linux.cpp Fix normal hooks. 2012-02-28 12:59:02 +01:00
Hooks-windows.cpp Fixed up formatting, debug messages in new Windows Hotkey stuff. 2012-03-09 01:07:47 -08:00
LuaTypes.cpp Implement recursive transfer of values from lua to c++ structures. 2012-03-28 16:58:51 +08:00
LuaWrapper.cpp Implement recursive transfer of values from lua to c++ structures. 2012-03-28 16:58:51 +08:00
MiscUtils.cpp Add many new template functions for enums & bitfields. 2012-03-17 12:52:22 +04:00
PlugLoad-linux.cpp Add eggy hooks (linux only for now) 2012-02-28 03:37:56 +01:00
PlugLoad-windows.cpp Add eggy hooks (linux only for now) 2012-02-28 03:37:56 +01:00
PluginManager.cpp A number of interface tweaks in RemoteClient. 2012-03-16 14:11:46 +04:00
Process-linux.cpp Fix sscanf parsing the memory map on linux, so that dfusion loads. 2012-03-26 21:05:24 +04:00
Process-windows.cpp Get rid of ntdll, update stonesense 2012-02-25 22:59:32 +01:00
RemoteClient.cpp Use a more obscure serialize method to avoid recalculating byte size. 2012-03-17 17:52:23 +04:00
RemoteServer.cpp Make the server suspend the core around calls unless disabled. 2012-03-18 11:04:15 +04:00
RemoteTools.cpp Need to return a value here 2012-03-18 14:42:36 -05:00
TileTypes.cpp Change to the traits representation of enum and bitfield properties. 2012-03-15 20:46:08 +04:00
VersionInfoFactory.cpp Tweaks and cleanups 2012-03-24 12:13:51 +01:00
dfhack-run.cpp A number of interface tweaks in RemoteClient. 2012-03-16 14:11:46 +04:00