# org.simocracy.sim

> Published by [gainforest.earth](https://lexicon.garden/identity/did:plc:qoti4acfmc5wg6zzmtix6hse)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.sim)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.sim/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.sim/examples)

## Definitions

### `org.simocracy.sim`

**Type**: `record`

An avatar/sim record. One user can have multiple sims.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Display name of the sim |
| `image` | `blob` | No | Rendered avatar PNG thumbnail for quick display |
| `sprite` | `blob` | No | Animated sprite sheet PNG (128x128, 4 cols x 4 rows of 32x32 frames). Row order: front, left, right, back. Each row has 4 walk-cycle frames. |
| `settings` | `ref` → `org.simocracy.defs#spriteSettings` | Yes | Sprite appearance settings |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the sim was created |

## Raw Schema

```json
{
  "id": "org.simocracy.sim",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "settings",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "description": "Display name of the sim"
          },
          "image": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "Rendered avatar PNG thumbnail for quick display"
          },
          "sprite": {
            "type": "blob",
            "accept": [
              "image/png"
            ],
            "maxSize": 1000000,
            "description": "Animated sprite sheet PNG (128x128, 4 cols x 4 rows of 32x32 frames). Row order: front, left, right, back. Each row has 4 walk-cycle frames."
          },
          "settings": {
            "ref": "org.simocracy.defs#spriteSettings",
            "type": "ref",
            "description": "Sprite appearance settings"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the sim was created"
          }
        }
      },
      "description": "An avatar/sim record. One user can have multiple sims."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
