<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/SetTurnAction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit13SetTurnActionV"
  },
  "title" : "SetTurnAction"
}
-->

# SetTurnAction

An action that sets the current seats participating in the current turn.

```
struct SetTurnAction
```

## Overview

To create a set turn action, use the [`setTurn(forSeat:context:)`](/documentation/TabletopKit/TabletopAction/setTurn(forSeat:context:)) or a similar static method.

## Topics

### Getting the seats involved in a turn

[`var seatIDsInTurn: [TableSeatIdentifier]`](/documentation/TabletopKit/SetTurnAction/seatIDsInTurn)

The IDs of the seats that are part of the current turn.

### Getting the action properties

[`var context: UInt64`](/documentation/TabletopKit/SetTurnAction/context)

An integer value that your game uses.

[`var playerID: Player.ID?`](/documentation/TabletopKit/SetTurnAction/playerID)

The ID of the player who is setting the turn.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`TabletopAction`](/documentation/TabletopKit/TabletopAction)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)