diff options
Diffstat (limited to 'spec/item.fspec')
-rw-r--r-- | spec/item.fspec | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/spec/item.fspec b/spec/item.fspec index c4d1767..31bd3f5 100644 --- a/spec/item.fspec +++ b/spec/item.fspec @@ -15,14 +15,12 @@ struct item { u16 type; u16 resource; u16 targets; - - union data (type) { - 4 => struct weapon weapon; - 5 => struct armor armor; - 7 => struct usable usable; - 12 => struct puppet puppet; - * => struct general general; - }; - + select (type) { + 4) struct weapon weapon; + 5) struct armor armor; + 7) struct usable usable; + 12) struct puppet puppet; + *) struct general general; + } data; struct strings strings; }; |