Skip to main content

user.activity_point_notification

Generated from spec/protocol.yaml. Do not edit by hand.

Overview

  • ID: 2275
  • Header: ACTIVITY_POINT_NOTIFICATION
  • Direction: Server to Client (s2c)
  • Realm: Notifications & Landing
  • Phase: session
  • Since: nitro-1.6.6
  • Summary: Notify the client of an activity-point currency change

Payload fields

FieldTypeRequiredDescription
amountint32requiredNew total balance of the activity-point currency
amountChangedint32requiredSigned delta applied to the balance (positive = earned, negative = spent)
typeint32requiredCurrency type identifier (e.g. 0 = Pixels, 5 = Diamonds)

Behavior

Sender

Sent when the user's activity-point balance for a specific currency type changes (earned or spent). The amountChanged field carries the signed delta.

Receiver

The client updates the displayed balance for the given currency type and may play a reward animation if amountChanged is positive.

Notes

  • No additional notes