summaryrefslogtreecommitdiff
path: root/spec/name.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/name.fspec
parent76b8c9e03c97b16d9ff97f3b79c0ecbff0f5e7f2 (diff)
work in progress
Diffstat (limited to 'spec/name.fspec')
-rw-r--r--spec/name.fspec11
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/name.fspec b/spec/name.fspec
index 69f75de..d4e0f7c 100644
--- a/spec/name.fspec
+++ b/spec/name.fspec
@@ -1,5 +1,8 @@
-// NPC IDs
-struct name = {
- u8 name[28] = ascii; // The kind actually depends on ROM section
- u32 id;
+struct name {
+ name: u8[28] | encoding('ascii') str; // The encoding actually depends on ROM region
+ id: u32;
+};
+
+struct dat {
+ name: struct name[$];
};