Struct MerchantPurchaseResultBroadcast
Server -> Client result of a MerchantPurchaseBroadcast.
public struct MerchantPurchaseResultBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Remarks
The same contract the sell path already keeps, for the same reason: the client arms a watchdog when it submits a purchase, and a handler that simply returns leaves that watchdog to expire into "No reply from the server" — which describes a network fault rather than a request the server understood and refused, and invites the player to retry something that cannot succeed. Every exit from the purchase handler sends one of these.
Fields
Charged
Currency actually charged.
public long Charged
Field Value
Failure
Why the purchase was refused. None on success.
public MerchantPurchaseFailure Failure
Field Value
Index
The entry index the request named.
public int Index
Field Value
Quantity
Quantity actually granted, after server-side clamping.
public int Quantity
Field Value
Success
True when the purchase went through.
public bool Success
Field Value
Type
The tab the request named.
public MerchantTabType Type