fix C++ type error for playground

This commit is contained in:
2021-09-18 18:33:44 -06:00
parent 65323a3d96
commit 1e44f1db11
4 changed files with 32 additions and 12 deletions

View File

@@ -29,8 +29,10 @@
(refreshEntry e)
e))
// After modifying an entry, this must be called. If you are writing in a createEntry initializer or a system's processEntry function, this will happen automatically.
// Otherwise, you can guarantee it happens automatically by using the (withWritableEntry) macro in Lib.kiss
// After modifying an entry, this must be called. If you are writing in a createEntry
// initializer or a system's processEntry function, this will happen automatically.
// Otherwise, you can guarantee it happens automatically by using the (withWritableEntry)
// and (withWritableComponents) macros in Lib.kiss
(method refreshEntry [:Entry e]
(_saveEntry e)
(doFor system systems

View File

@@ -9,9 +9,13 @@
&prop :EntryProcessor processEntry]
[])
(prop &mut :Null<EntryProcessor> onRemoveEntry)
(method :Void checkEntryInOrOut [:Archive archive :Entry e]
(if (canProcessEntry archive e)
(dictSet entries e.id e)
(entries.remove e.id)))
(when (entries.exists e.id)
(entries.remove e.id)
(when onRemoveEntry (onRemoveEntry archive e)))))
// TODO systems may need access to a UI