Table of Contents

Struct MerchantPurchaseResultBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

long

Failure

Why the purchase was refused. None on success.

public MerchantPurchaseFailure Failure

Field Value

MerchantPurchaseFailure

Index

The entry index the request named.

public int Index

Field Value

int

Quantity

Quantity actually granted, after server-side clamping.

public int Quantity

Field Value

int

Success

True when the purchase went through.

public bool Success

Field Value

bool

Type

The tab the request named.

public MerchantTabType Type

Field Value

MerchantTabType