Class TradeExchange.Side
- Namespace
- FishMMO.Server.Implementation.World.SceneServer
- Assembly
- FishMMO.Server.dll
One character's inventory and offers going in; the rows its write must carry coming out.
public sealed class TradeExchange.Side
- Inheritance
-
TradeExchange.Side
- Inherited Members
Fields
Changed
Items whose rows this character's write must upsert — see the class remarks.
public readonly List<Item> Changed
Field Value
EmptiedSlots
Inventory slots that are now empty, so the owning client can be told.
public readonly List<int> EmptiedSlots
Field Value
Inventory
The character's inventory container.
public IItemContainer Inventory
Field Value
Offers
What this side is giving away.
public IReadOnlyList<TradeOffer> Offers
Field Value
Removed
Rows this character's write must delete.
public readonly List<RemovedItemRecord> Removed
Field Value
TouchedSlots
Every slot of this inventory the exchange read or wrote: the offered slots, the slots incoming items landed in or merged into, and the slots that emptied. The caller locks these for as long as the exchange can still be undone, so that Undo() restores exactly what it took and nothing has moved into a slot it needs to put something back into.
public readonly List<int> TouchedSlots
Field Value
UnidentifiedPlaced
Items placed in this inventory that have no database identity yet.
public readonly List<Item> UnidentifiedPlaced
Field Value
Methods
ClearOutputs()
Clears every output list, for a retry after a refusal.
public void ClearOutputs()