summaryrefslogtreecommitdiff
path: root/spec/item.fspec
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-09-16 10:54:51 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-09-19 20:44:55 +0300
commitd98285e367c29ec9eb1cacf5cf424d6910270efd (patch)
tree8b452a322c1acceecffeb647f9774949b17d7516 /spec/item.fspec
parentcc333c5f12a91a894a116130eebb30ed0474db47 (diff)
redesign
Diffstat (limited to 'spec/item.fspec')
-rw-r--r--spec/item.fspec16
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;
};