Table of Contents

Interface IPeriodicUpdateSystem

Namespace
FishMMO.Server.Core
Assembly
FishMMO.Server.dll

Provides periodic callback registration and dispatch functionality. Allows components to register callbacks that execute at specified intervals.

public interface IPeriodicUpdateSystem

Methods

RegisterPeriodicCallback(float, Action<float>)

Registers a callback to be invoked periodically at the specified interval.

void RegisterPeriodicCallback(float interval, Action<float> callback)

Parameters

interval float

Time in seconds between callback invocations.

callback Action<float>

The callback to invoke. Receives delta time since last invocation.

UnregisterPeriodicCallback(Action<float>)

Unregisters a previously registered periodic callback.

void UnregisterPeriodicCallback(Action<float> callback)

Parameters

callback Action<float>

The callback to unregister.

UpdateCallbackInterval(Action<float>, float)

Updates the interval for an existing periodic callback.

void UpdateCallbackInterval(Action<float> callback, float newInterval)

Parameters

callback Action<float>

The callback whose interval to update.

newInterval float

The new interval in seconds.