Table of Contents

Class ClaimPlotAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA action that asks the server to claim the plot the player is interacting with. Server-only.

[Serializable]
public class ClaimPlotAction : BaseAction, IAction
Inheritance
ClaimPlotAction
Implements
Inherited Members

Remarks

Deliberately thin. Claiming needs the database — read the row, take the money, take the plot — and none of that can happen inside a synchronous ECA action, nor can shared code reach the server behaviour that owns the connection. So this raises a request and returns.

Nothing is validated here, not even affordability. Every check that matters has to be made where the claim is actually written, or it is a check made against state that may have changed by the time it is used: another player on another scene server can take the plot in the gap. Testing anything here would only produce a friendlier lie.

Methods

Execute(ICharacter, EventData)

Raises a claim request for the interacted foundation.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter
eventData EventData