summaryrefslogtreecommitdiff
path: root/spec/item.fspec
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-03-30 17:31:44 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2017-04-13 14:49:46 +0300
commit76b8c9e03c97b16d9ff97f3b79c0ecbff0f5e7f2 (patch)
tree70f1d22a923d1c01b22b2fade3b6e96365990dda /spec/item.fspec
Initial commit
Diffstat (limited to 'spec/item.fspec')
-rw-r--r--spec/item.fspec28
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/item.fspec b/spec/item.fspec
new file mode 100644
index 0000000..c4d1767
--- /dev/null
+++ b/spec/item.fspec
@@ -0,0 +1,28 @@
+struct string_info {
+ u32 offset;
+ u32 flags;
+};
+
+struct strings {
+ u32 nmemb;
+ struct string_info info[nmemb];
+};
+
+struct item {
+ u32 id;
+ u16 flags;
+ u16 stack;
+ 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;
+ };
+
+ struct strings strings;
+};