Struct TradeStateBroadcast
The whole table, as seen from the receiving side.
public struct TradeStateBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Remarks
The full state every time rather than deltas. A table holds at most a handful of items, so the saving would be small, and a client that has missed nothing still repaints from scratch — which is also what makes it trivially correct after a tree rebuild.
Receiver-shaped: the same change produces two different messages, one per party, each saying "own" and "partner" from that party's point of view. Neither client has to know which side of the session it is.
Fields
OwnAccepted
Whether this client's character has accepted the frozen table.
public bool OwnAccepted
Field Value
OwnConfirmed
Whether this client's character has declared its offer final.
public bool OwnConfirmed
Field Value
OwnCurrency
Currency this client's character is offering.
public long OwnCurrency
Field Value
OwnOffer
What this client's character is offering.
public TradeOfferEntry[] OwnOffer
Field Value
PartnerAccepted
Whether the other party has accepted the frozen table.
public bool PartnerAccepted
Field Value
PartnerConfirmed
Whether the other party has declared its offer final.
public bool PartnerConfirmed
Field Value
PartnerCurrency
Currency the other party is offering.
public long PartnerCurrency
Field Value
PartnerOffer
What the other party is offering.
public TradeOfferEntry[] PartnerOffer
Field Value
Version
Increments on every change to either offer. Quoted back by TradeConfirmBroadcast and TradeAcceptBroadcast.
public uint Version