Table of Contents

Class TextureUpdateScheduler

Namespace
Map.MapModes
Assembly
MapAssembly.dll

Schedules texture updates for map mode handlers based on their update frequency Prevents unnecessary texture updates and optimizes performance

public class TextureUpdateScheduler
Inheritance
object
TextureUpdateScheduler

Methods

Dispose()

Clean up resources

public void Dispose()

ForceUpdate(IMapModeHandler)

Force update for a specific handler

public void ForceUpdate(IMapModeHandler handler)

Parameters

handler IMapModeHandler

OnModeChanged(IMapModeHandler)

Notify when map mode changes (for immediate updates)

public void OnModeChanged(IMapModeHandler newHandler)

Parameters

newHandler IMapModeHandler

RegisterHandler(IMapModeHandler, UpdateFrequency, Action<IMapModeHandler>)

Register a handler for scheduled updates

public void RegisterHandler(IMapModeHandler handler, UpdateFrequency frequency, Action<IMapModeHandler> updateAction)

Parameters

handler IMapModeHandler
frequency UpdateFrequency
updateAction Action<IMapModeHandler>

SetActiveHandler(IMapModeHandler)

Set the currently active handler (only this handler will receive updates)

public void SetActiveHandler(IMapModeHandler handler)

Parameters

handler IMapModeHandler

Update()

Update only the currently active handler (architecture compliance)

public void Update()