Table of Contents

Interface ISwitch

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

Server-side interface for switch interactables. Exposes the switch target and toggle behaviour needed by the interaction handler.

public interface ISwitch : IInteractable, ISceneObject
Inherited Members

Properties

AchievementTemplate

Achievement template to increment when a player operates this switch.

AchievementTemplate AchievementTemplate { get; }

Property Value

AchievementTemplate

IsToggle

When true, the switch toggles between activated and deactivated states on each interaction. When false, the switch can only be activated once.

bool IsToggle { get; }

Property Value

bool

SwitchTarget

The target that this switch activates or deactivates (door, chest, trap, etc.).

ISwitchTarget SwitchTarget { get; }

Property Value

ISwitchTarget