Table of Contents

Struct MerchantSellBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Client → Server broadcast to sell an inventory item to a merchant.

public struct MerchantSellBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

Carries a slot index and a quantity and nothing else. The server resolves the item in that slot itself, takes the price from that item's template, and applies the merchant template's own multiplier — so neither the item's identity nor its value is ever taken from the client. This mirrors how the rest of the item trust boundary works: client to server carries slot indices and enums, never IDs or values.

Fields

InteractableID

ID of the merchant object.

public long InteractableID

Field Value

long

Quantity

How many to sell out of that slot. Clamped server-side to the stack size.

public int Quantity

Field Value

int

Slot

Inventory slot index holding the item being sold.

public int Slot

Field Value

int