Contents

Equipment

A protocol for equipment that players directly interact with in a game.

Declaration

protocol Equipment : Identifiable where Self.ID == EquipmentIdentifier

Overview

To represent equipment in your game, such as cards, pieces, and dice, following these steps:

Optionally, implement the layoutChildren(for:visualState:) method for equipment that represents groups, and the restingOrientation(state:) method to provide a custom resting orientation.

Topics

Gettting the initial state of the equipment

Displaying the equipment

See Also

Equipment