Table of Contents

Interface ICapturePoint

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

Server-side interface for capture point interactables. Exposes state, ownership, and capture logic needed by the interaction handler.

public interface ICapturePoint : IInteractable, ISceneObject
Inherited Members

Fields

OnCaptured

Fired when a player captures this point. Parameters: (capturePoint, captorCharacterID).

public static Action<CapturePoint, long> OnCaptured

Field Value

Action<CapturePoint, long>

OnStateChanged

Fired when the capture state changes. Parameters: (capturePoint, newState).

public static Action<CapturePoint, ObjectiveState> OnStateChanged

Field Value

Action<CapturePoint, ObjectiveState>

Properties

AchievementTemplate

Achievement template to increment when a player captures this point.

AchievementTemplate AchievementTemplate { get; }

Property Value

AchievementTemplate

CaptureProgress

The current capture progress toward the next ownership change.

int CaptureProgress { get; }

Property Value

int

OwnerCharacterID

The character ID of the current owner of this capture point.

long OwnerCharacterID { get; }

Property Value

long

State

The current objective state of this capture point.

ObjectiveState State { get; }

Property Value

ObjectiveState

Template

The capture point template defining interactions to capture, point value, and other settings.

CapturePointTemplate Template { get; }

Property Value

CapturePointTemplate

Methods

ApplyCapture(long)

Applies a capture interaction from the specified character. Returns true if the point was fully captured.

bool ApplyCapture(long characterID)

Parameters

characterID long

The ID of the capturing character.

Returns

bool

True if the capture point was fully captured; otherwise, false.