Interface ISwitch
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
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
SwitchTarget
The target that this switch activates or deactivates (door, chest, trap, etc.).
ISwitchTarget SwitchTarget { get; }