Interface ICapturePoint
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
OnStateChanged
Fired when the capture state changes. Parameters: (capturePoint, newState).
public static Action<CapturePoint, ObjectiveState> OnStateChanged
Field Value
Properties
AchievementTemplate
Achievement template to increment when a player captures this point.
AchievementTemplate AchievementTemplate { get; }
Property Value
CaptureProgress
The current capture progress toward the next ownership change.
int CaptureProgress { get; }
Property Value
OwnerCharacterID
The character ID of the current owner of this capture point.
long OwnerCharacterID { get; }
Property Value
State
The current objective state of this capture point.
ObjectiveState State { get; }
Property Value
Template
The capture point template defining interactions to capture, point value, and other settings.
CapturePointTemplate Template { get; }
Property Value
Methods
ApplyCapture(long)
Applies a capture interaction from the specified character. Returns true if the point was fully captured.
bool ApplyCapture(long characterID)
Parameters
characterIDlongThe ID of the capturing character.
Returns
- bool
True if the capture point was fully captured; otherwise, false.