Table of Contents

Class TradeSession.CommitState

Namespace
FishMMO.Server.Implementation.World.SceneServer
Assembly
FishMMO.Server.dll

What the commit has done so far, so a refusal at any point can be undone exactly. Null until the commit starts. Owned by TradeSystem.Commit.

public sealed class TradeSession.CommitState
Inheritance
TradeSession.CommitState
Inherited Members

Fields

Applied

The applied item exchange, or null when the apply aborted before mutating.

public TradeExchange.Applied Applied

Field Value

TradeExchange.Applied

FailureReason

Why the session closes if the commit does not land.

public TradeCloseReason FailureReason

Field Value

TradeCloseReason

Finished

True once the outcome has been handled, whichever way it went.

public bool Finished

Field Value

bool

FirstDeducted

Currency taken from each side in memory before the write; refunded on refusal.

public long FirstDeducted

Field Value

long

FirstSide

The rows each side's write carried, kept for the client notification.

public TradeExchange.Side FirstSide

Field Value

TradeExchange.Side

OfferLocksReleased

True once the offered slots' locks were released for the apply.

public bool OfferLocksReleased

Field Value

bool

SecondDeducted

public long SecondDeducted

Field Value

long

SecondSide

public TradeExchange.Side SecondSide

Field Value

TradeExchange.Side

StartedAt

Server time the commit was handed to the persistence layer.

public double StartedAt

Field Value

double