diff options
| author | Alexander Gavrilov | 2012-03-25 19:12:59 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-25 19:12:59 +0400 |
| commit | 1d81cb56ba1410b630f365fb5b1a949ea373c638 (patch) | |
| tree | d7b00cc4101c43967ad4f051b5ed5704e0794d4a /library/DataDefs.cpp | |
| parent | 0412aaebe4266d9d1ed07ac4d6083ba360b90a45 (diff) | |
| download | dfhack-1d81cb56ba1410b630f365fb5b1a949ea373c638.tar.gz dfhack-1d81cb56ba1410b630f365fb5b1a949ea373c638.tar.bz2 dfhack-1d81cb56ba1410b630f365fb5b1a949ea373c638.tar.xz | |
Make enum attributes accessible through the lua wrapper.
TODO: make them completely read-only.
Diffstat (limited to 'library/DataDefs.cpp')
| -rw-r--r-- | library/DataDefs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp index 3d635474..755477d4 100644 --- a/library/DataDefs.cpp +++ b/library/DataDefs.cpp @@ -149,10 +149,11 @@ enum_identity::enum_identity(size_t size, 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) + const char *const *keys, + const void *attrs, struct_identity *attr_type) : compound_identity(size, NULL, scope_parent, dfhack_name), first_item_value(first_item_value), last_item_value(last_item_value), - keys(keys), base_type(base_type) + keys(keys), base_type(base_type), attrs(attrs), attr_type(attr_type) { } |
