Skip to content

Class: Room_Trap_Toggleable ​

csharp
[DewResourceLink(ResourceLinkBy.None)]
public abstract class Room_Trap_Toggleable : Actor, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IToggleableTrap, IBanRoomNodesNearby, IBanCampsNearby

Fields ​

NameDeclarationDescription
fxOffpublic GameObject fxOff
fxOnpublic GameObject fxOn

Properties ​

NameDeclarationDescription
isOnpublic bool isOn { get; }
startTimepublic float startTime { get; }Available on server. Based onTime.time. By default it is negative infinity.

Methods ​

OnStartTrapServer() ​

Called on server when this trap is started.

csharp
protected virtual void OnStartTrapServer()

OnStopTrapServer() ​

Called on server when this trap is stopped.

csharp
protected virtual void OnStopTrapServer()

StartTrap() ​

csharp
public void StartTrap()

StopTrap() ​

csharp
public void StopTrap()

Maintained by the Shape of Dreams Modding Community