From 7bcfb0008fcb85649ec82f7ead2b5a269eb8d39d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 17 Sep 2021 23:09:53 -0600 Subject: [PATCH] FileRef and EntryRef typedefs --- src/nat/Entry.hx | 2 +- src/nat/EntryRef.hx | 3 +++ src/nat/FileRef.hx | 3 +++ src/nat/systems/AttachmentSystem.hx | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/nat/EntryRef.hx create mode 100644 src/nat/FileRef.hx diff --git a/src/nat/Entry.hx b/src/nat/Entry.hx index c7f1ccf..04b9a12 100644 --- a/src/nat/Entry.hx +++ b/src/nat/Entry.hx @@ -3,5 +3,5 @@ package nat; typedef Entry = { id:String, components:Map, - files:Array + files:Array }; diff --git a/src/nat/EntryRef.hx b/src/nat/EntryRef.hx new file mode 100644 index 0000000..e5bdde9 --- /dev/null +++ b/src/nat/EntryRef.hx @@ -0,0 +1,3 @@ +package nat; + +typedef EntryRef = String; diff --git a/src/nat/FileRef.hx b/src/nat/FileRef.hx new file mode 100644 index 0000000..2cc3720 --- /dev/null +++ b/src/nat/FileRef.hx @@ -0,0 +1,3 @@ +package nat; + +typedef FileRef = String; diff --git a/src/nat/systems/AttachmentSystem.hx b/src/nat/systems/AttachmentSystem.hx index 6eb6511..3d8e6ab 100644 --- a/src/nat/systems/AttachmentSystem.hx +++ b/src/nat/systems/AttachmentSystem.hx @@ -7,7 +7,7 @@ import haxe.Json; using haxe.io.Path; -typedef AttachmentProcessor = (Archive, Entry, Array) -> Dynamic; +typedef AttachmentProcessor = (Archive, Entry, Array) -> Dynamic; /** * Base System that processes Entries based on whether they have file attachments