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

@@ -20,12 +20,6 @@ namespace Cryville.Crtr {
base.PreInit();
}
public override void Dispose() {
if (Disposed) return;
base.Dispose();
foreach (var s in sounds) s.Dispose();
}
public override void Update(ContainerState s, StampedEvent ev) {
base.Update(s, ev);
if (s.CloneType == 16) {
@@ -50,5 +44,10 @@ namespace Cryville.Crtr {
base.EndUpdate(s);
// TODO End of chart
}
public override void DisposeAll() {
base.DisposeAll();
foreach (var s in sounds) s.Dispose();
}
}
}