Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Svelto.ECS
- {
- [AllowMultiple]
- public class DisposeDisposablesEngine : IEngine, IDisposable
- {
- public DisposeDisposablesEngine(IDisposable[] disposable)
- {
- _disposable = disposable;
- }
-
- public void Dispose()
- {
- foreach (var d in _disposable)
- {
- d.Dispose();
- }
- }
-
- IDisposable[] _disposable;
- }
-
- }
|