summaryrefslogtreecommitdiff
path: root/spec/ability.fspec
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-04-20 16:49:35 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2017-05-01 22:58:22 +0300
commit29086b1d12a2c28cffdbfbf0b3990a7bd75506b9 (patch)
tree8acd48bc30932812744c0adb102d7a7add494357 /spec/ability.fspec
parent76b8c9e03c97b16d9ff97f3b79c0ecbff0f5e7f2 (diff)
work in progress
Diffstat (limited to 'spec/ability.fspec')
-rw-r--r--spec/ability.fspec21
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/ability.fspec b/spec/ability.fspec
index 3c2c890..4498d69 100644
--- a/spec/ability.fspec
+++ b/spec/ability.fspec
@@ -1,11 +1,14 @@
-// Abilities
struct ability {
- u16 index;
- u16 icon_id;
- u16 mp_cost;
- u16 unknown;
- u16 targets;
- u8 name[32] = sjis; // The kind actually depends on ROM section
- u8 description[256] = sjis; // ^ Ditto, we probably can't express this
- u8 padding[726] = pad;
+ index: u16;
+ icon_id: u16;
+ mp_cost: u16;
+ unknown: u16;
+ targets: u16;
+ name: u8[32] | encoding('sjis') str; // The encoding actually depends on ROM region
+ description: u8[256] | encoding('sjis') str; // ^ Ditto, we can't express this (we need parser options)
+ padding: u8[726] nul;
+};
+
+struct dat {
+ ability: struct ability[$];
};