Contents

TabletopGame.RenderDelegate

A protocol for the object that renders your entire game.

Declaration

protocol RenderDelegate : AnyObject

Overview

To provide a renderer, set the TabletopGame object render delegate to an object that conforms to this protocol using the addRenderDelegate(_:) method. Then implement the onUpdate(timeInterval:snapshot:visualState:) protocol method to render the current state of the game.

Topics

Rendering the game

See Also

Rendering the table