fix C++ type error for playground

This commit is contained in:
2021-09-18 18:33:44 -06:00
parent a725a5b13c
commit ab48bb7b87
2 changed files with 9 additions and 3 deletions

View File

@@ -29,8 +29,10 @@
(refreshEntry e) (refreshEntry e)
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. // After modifying an entry, this must be called. If you are writing in a createEntry
// Otherwise, you can guarantee it happens automatically by using the (withWritableEntry) macro in Lib.kiss // 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] (method refreshEntry [:Entry e]
(_saveEntry e) (_saveEntry e)
(doFor system systems (doFor system systems

View File

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