Table of Contents

Interface ISystemLifecycle

Namespace
KeenEyes
Assembly
KeenEyes.Abstractions.dll

Optional interface for systems that need before/after update lifecycle hooks.

public interface ISystemLifecycle

Remarks

Implement this interface on systems that need to perform setup before processing or cleanup after processing. The SystemGroup will automatically call these methods around Update(float) for systems that implement this interface.

The SystemBase class in KeenEyes.Core implements this interface and provides virtual methods that can be overridden for custom lifecycle behavior.

Methods

OnAfterUpdate(float)

Called after Update(float) each frame.

void OnAfterUpdate(float deltaTime)

Parameters

deltaTime float

The time elapsed since the last update in seconds.

OnBeforeUpdate(float)

Called before Update(float) each frame.

void OnBeforeUpdate(float deltaTime)

Parameters

deltaTime float

The time elapsed since the last update in seconds.