much simpler component handling in NAT
This commit is contained in:
@@ -47,20 +47,8 @@
|
||||
(joinPath archiveDir "entries" (e.id.withExtension "json"))
|
||||
(Json.stringify e)))
|
||||
|
||||
(method :Dynamic componentData [:Entry e :String componentType]
|
||||
(haxe.Json.parse (File.getContent (joinPath archiveDir "components" "$(dictGet e.components componentType).json"))))
|
||||
|
||||
(method fullData [:Entry e]
|
||||
(object
|
||||
id e.id
|
||||
components
|
||||
(for =>type id e.components
|
||||
=>type (componentData e type))
|
||||
files
|
||||
e.files))
|
||||
|
||||
(method fullString [:Entry e]
|
||||
(haxe.Json.stringify (fullData e) null "\t"))
|
||||
(haxe.Json.stringify e null "\t"))
|
||||
|
||||
(function :Entry _newEntry []
|
||||
(object
|
||||
|
Reference in New Issue
Block a user