SUBSCRIBE round/result

SUB round/result
SUBSCRIBE round/result

Message

Payload

  • game object
    Hide game attributes Show game attributes object
    • id string
    • started boolean
    • tiles array[object]
      Hide tiles attributes Show tiles attributes array[object]
      • user object
        Hide user attribute Show user attribute object
      • x integer
      • y integer
      • type string

        Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

      • level integer
    • buildableTiles array[object]
      Hide buildableTiles attributes Show buildableTiles attributes array[object]
    • users array[object]
      Hide users attributes Show users attributes array[object]
    • remainingTurns array[object]
      Hide remainingTurns attribute Show remainingTurns attribute array[object]
      • user object
        Hide user attribute Show user attribute object
  • user object
    Hide user attributes Show user attributes object
  • Hide stepToDisbursements attributes Show stepToDisbursements attributes object
    • step1 array[object]
      Hide step1 attributes Show step1 attributes array[object]
      • from object
        Hide from attributes Show from attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • to object
        Hide to attributes Show to attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • value integer

        The value that was disbursed into the tile.

      • profit integer

        The profit that the tile keeps.

    • step2 array[object]
      Hide step2 attributes Show step2 attributes array[object]
      • from object
        Hide from attributes Show from attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • to object
        Hide to attributes Show to attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • value integer

        The value that was disbursed into the tile.

      • profit integer

        The profit that the tile keeps.

    • step3 array[object]
      Hide step3 attributes Show step3 attributes array[object]
      • from object
        Hide from attributes Show from attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • to object
        Hide to attributes Show to attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • value integer

        The value that was disbursed into the tile.

      • profit integer

        The profit that the tile keeps.

    • step4 array[object]
      Hide step4 attributes Show step4 attributes array[object]
      • from object
        Hide from attributes Show from attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • to object
        Hide to attributes Show to attributes object
        • user object
          Hide user attribute Show user attribute object
        • x integer
        • y integer
        • type string

          Values are COMMERCIAL, MANUFACTURING, RESIDENTIAL, or STREET.

        • level integer
      • value integer

        The value that was disbursed into the tile.

      • profit integer

        The profit that the tile keeps.

  • type string
Payload example
{
  "game": {
    "id": "HX8K0S",
    "started": true,
    "tiles": [
      {
        "user": {
          "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
        },
        "x": 0,
        "y": 0,
        "type": "COMMERCIAL",
        "level": 1
      }
    ],
    "buildableTiles": [
      {
        "x": 0,
        "y": 0
      }
    ],
    "users": [
      {
        "name": "Alice",
        "id": "dd5fe58c-f28a-4836-be05-893f0011c2d9",
        "bank": 1000,
        "isAi": false
      }
    ],
    "remainingTurns": [
      {
        "user": {
          "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
        }
      }
    ]
  },
  "user": {
    "name": "Alice",
    "id": "dd5fe58c-f28a-4836-be05-893f0011c2d9"
  },
  "stepToDisbursements": {
    "step1": [
      {
        "from": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "to": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "value": 42,
        "profit": 42
      }
    ],
    "step2": [
      {
        "from": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "to": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "value": 42,
        "profit": 42
      }
    ],
    "step3": [
      {
        "from": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "to": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "value": 42,
        "profit": 42
      }
    ],
    "step4": [
      {
        "from": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "to": {
          "user": {
            "id": "8a7f197a-7707-409b-ace4-9ad038e7a0de"
          },
          "x": 0,
          "y": 0,
          "type": "COMMERCIAL",
          "level": 1
        },
        "value": 42,
        "profit": 42
      }
    ]
  },
  "userIdToProfit": {
    "8a7f197a-7707-409b-ace4-9ad038e7a0de": 12,
    "dd5fe58c-f28a-4836-be05-893f0011c2d9": 25
  },
  "type": "RoundResult"
}