Table of Contents

Interface IPlotFoundation

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Server-side interface for plot foundation interactables — the buildable land a player claims.

public interface IPlotFoundation : IInteractable, ISceneObject
Inherited Members

Remarks

A foundation is authored in a scene and never spawned at runtime, so its identity is the key a designer wrote on it rather than anything the network assigns. See FishMMO.Shared.PlotIdentity for why.

Properties

PlotID

The database identity of this plot, or zero until registration has resolved it.

long PlotID { get; }

Property Value

long

Remarks

Zero is the honest answer during the window between a scene loading and its plots being read back from the database. Nothing may be claimed while it is zero — there is no row to claim yet.

PlotKey

The key authored on this foundation, canonicalised. Unique within its scene.

string PlotKey { get; }

Property Value

string

Price

What it costs to claim this plot, in the server's currency attribute.

long Price { get; }

Property Value

long

State

Where this plot is in its lifecycle, as the server last resolved it.

PlotState State { get; }

Property Value

PlotState

Remarks

Replicated, because it decides what the foundation looks like as well as what may be done to it — an empty lot, a building site, a house, and an abandoned house are four different things to walk up to.