« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/flash.js6
-rw-r--r--src/data/yaml.js4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 8fb1edf..52e30f8 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -12,6 +12,7 @@ import {
 import {
   color,
   contributionList,
+  directory,
   fileExtension,
   name,
   referenceList,
@@ -117,12 +118,15 @@ export class Flash extends Thing {
 }
 
 export class FlashAct extends Thing {
+  static [Thing.referenceType] = 'flash-act';
+
   static [Thing.getPropertyDescriptors] = () => ({
     // Update & expose
 
     name: name('Unnamed Flash Act'),
+    directory: directory(),
     color: color(),
-    anchor: simpleString(),
+
     jump: simpleString(),
 
     jumpColor: {
diff --git a/src/data/yaml.js b/src/data/yaml.js
index c799be5..0ecc1f1 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -434,8 +434,10 @@ export const processFlashDocument = makeProcessDocument(T.Flash, {
 export const processFlashActDocument = makeProcessDocument(T.FlashAct, {
   propertyFieldMapping: {
     name: 'Act',
+    directory: 'Directory',
+
     color: 'Color',
-    anchor: 'Anchor',
+
     jump: 'Jump',
     jumpColor: 'Jump Color',
   },