Add DisposeAll.

This commit is contained in:
2023-01-31 15:39:40 +08:00
parent f9a1ea72fe
commit 9700992c3a
5 changed files with 22 additions and 16 deletions

View File

@@ -168,6 +168,11 @@ namespace Cryville.Crtr.Event {
RMVPool.ReturnAll();
MCPool.ReturnAll();
}
public void DisposeAll() {
foreach (var s in Children)
s.Value.DisposeAll();
Handler.DisposeAll();
}
public void AttachHandler(ContainerHandler h) {
if (Handler != null)