S9SourceNine Labs / CMAPI Docs 1.0
CMAPI / API reference

IGameLoopEvents

Provides safe, main-thread game-loop events.

View source ↗
CMAPI 1.0.0Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIInterfaceAssembly CMAPI.API.dll
public interface IGameLoopEvents

Provides safe, main-thread game-loop events.

Members

UpdateTicked

event
event Action<GameLoopTick> UpdateTicked

Raised once near the end of every Unity update.

This is a high-frequency event. Avoid disk access, network access, or expensive searches in this handler.

OneSecondTicked

event
event Action<GameLoopTick> OneSecondTicked

Raised approximately once per real-time second.

CMAPI does not emit a burst of missed events after a long stall or suspended process.