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

# UpdateEquipmentAction

An action that updates properties of equipment on the table.

```
struct UpdateEquipmentAction<State> where State : EquipmentState
```

## Overview

To create an update equipment action, use the [`updateEquipment(_:state:context:)`](/documentation/TabletopKit/TabletopAction/updateEquipment(_:state:context:)-6kawf) or a similar static method.

## Topics

### Getting the equipment in the action

[`var equipmentID: EquipmentIdentifier`](/documentation/TabletopKit/UpdateEquipmentAction/equipmentID)

The ID of the equipment to update.

### Getting the state of the equipment

[`var newState: State?`](/documentation/TabletopKit/UpdateEquipmentAction/newState)

The new state of the equipment.

### Getting the context and player identifier

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

An integer value that your game uses.

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

The player performing the action.

## Relationships

### Conforms To

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

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

---

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)