summaryrefslogtreecommitdiff
path: root/library/DataDefs.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-20 13:56:29 +0400
committerAlexander Gavrilov2012-03-20 13:56:29 +0400
commit6c661bcaa907952f3ffdc4ff546ec88cfcc36d72 (patch)
treeeeb3b20f6b32cb95c036f4a33701b30020afc0bd /library/DataDefs.cpp
parentdbbd9acfad8d5994f321840e3d695fe8a67ac315 (diff)
downloaddfhack-6c661bcaa907952f3ffdc4ff546ec88cfcc36d72.tar.gz
dfhack-6c661bcaa907952f3ffdc4ff546ec88cfcc36d72.tar.bz2
dfhack-6c661bcaa907952f3ffdc4ff546ec88cfcc36d72.tar.xz
Add support for primitive type fields in lua wrapper.
Diffstat (limited to 'library/DataDefs.cpp')
-rw-r--r--library/DataDefs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp
index c7b0d29d..e8ee1471 100644
--- a/library/DataDefs.cpp
+++ b/library/DataDefs.cpp
@@ -95,17 +95,20 @@ bitfield_identity::bitfield_identity(size_t size, TAllocateFn alloc,
enum_identity::enum_identity(size_t size, TAllocateFn alloc,
compound_identity *scope_parent, const char *dfhack_name,
+ type_identity *base_type,
int64_t first_item_value, int64_t last_item_value,
const char *const *keys)
: compound_identity(size, alloc, scope_parent, dfhack_name),
- first_item_value(first_item_value), last_item_value(last_item_value), keys(keys)
+ first_item_value(first_item_value), last_item_value(last_item_value),
+ keys(keys), base_type(base_type)
{
}
struct_identity::struct_identity(size_t size, TAllocateFn alloc,
compound_identity *scope_parent, const char *dfhack_name,
struct_identity *parent, const struct_field_info *fields)
- : compound_identity(size, alloc, scope_parent, dfhack_name), parent(parent), has_children(false)
+ : compound_identity(size, alloc, scope_parent, dfhack_name),
+ parent(parent), has_children(false), fields(fields)
{
}