Support multi-valued enum attributes.

develop
Alexander Gavrilov 2012-01-06 22:08:09 +04:00
parent 890824dd38
commit 0e90e6b78e
2 changed files with 8 additions and 1 deletions

@ -136,6 +136,12 @@ namespace DFHack
int size;
};
template<class T>
struct enum_list_attr {
int size;
const T *items;
};
DFHACK_EXPORT std::string bitfieldToString(const void *p, int size, const bitfield_item_info *items);
template<class T>
@ -150,6 +156,7 @@ namespace df
using DFHack::virtual_identity;
using DFHack::virtual_class;
using DFHack::bitfield_item_info;
using DFHack::enum_list_attr;
using DFHack::BitArray;
template<class T>

@ -1 +1 @@
Subproject commit d03375ddbd695fda2deb42dd13aa352efccebc60
Subproject commit e5713a6add0c21477d3bfa5e228ecdb4b3a2c33d