Skip to content

Interface IDestroySystem ​

Namespace: KenseiECS

Destroyed by SystemsRunner.Destroy(), in reverse registration order.

csharp
public interface IDestroySystem : ISystem

Implements ​

ISystem

Methods ​

Destroy(World) ​

Called once on shutdown by SystemsRunner.Destroy() of an initialized runner, in reverse registration order. A system that also implements IInitSystem is destroyed once per completed Init: by Destroy(), or by the rollback of a SystemsRunner.Init that failed in a system registered after it, so Destroy should undo what Init did. A system without IInitSystem is never destroyed by a rollback, only by Destroy().

csharp
void Destroy(World world)

Parameters ​

world World