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

# RawValueState

A state for equipment that contains a game-specific value.

```
struct RawValueState
```

## Topics

### Creating a die state

[`init(rawValue: UInt64, parentID: EquipmentIdentifier, seatControl: ControllingSeats, pose: TableVisualState.Pose2D, boundingBox: Rect3D)`](/documentation/TabletopKit/RawValueState/init(rawValue:parentID:seatControl:pose:boundingBox:))

Creates a state for equipment using the specified raw value, location, and player interactions.

[`init(rawValue: UInt64, parentID: EquipmentIdentifier, seatControl: ControllingSeats, pose: TableVisualState.Pose2D, entity: Entity)`](/documentation/TabletopKit/RawValueState/init(rawValue:parentID:seatControl:pose:entity:))

### Getting the die data

[`var rawValue: UInt64`](/documentation/TabletopKit/RawValueState/rawValue)

The integer value for this piece of equipment.

### Getting the parent equipment

[`var parentID: EquipmentIdentifier`](/documentation/TabletopKit/RawValueState/parentID)

The identifier for the parent equipment that holds or contains this equipment.

### Rendering the equipment

[`var boundingBox: Rect3D`](/documentation/TabletopKit/RawValueState/boundingBox)

A 3D bounding box that encloses the equipment.

[`var pose: TableVisualState.Pose2D`](/documentation/TabletopKit/RawValueState/pose)

The 2D position and rotation of the equipment relative to the equipment parent, or table.

### Controlling the equipment

[`var lockedBy: PlayerIdentifier?`](/documentation/TabletopKit/RawValueState/lockedBy)

The identifier for the player who exclusively controls the equipment.

[`var seatControl: ControllingSeats`](/documentation/TabletopKit/RawValueState/seatControl)

The seats that can manipulate or interact with the equipment.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)