Skip to content

Class: Rift_Sidetrack ​

csharp
[DewResourceLink(ResourceLinkBy.Name)]
public class Rift_Sidetrack : Rift, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, IBanRoomNodesNearby

Fields ​

NameDeclarationDescription
allowedZones`[InfoBox("All zones will be allowed to have this modifier", InfoMessageType.Info, "@allowedZones == null || allowedZones.Length == 0")]
[InfoBox("@GetZoneValidationMessage(allowedZones)", InfoMessageType.Error, "@GetZoneValidationMessage(allowedZones) != null")]
[ShowIf("@spawnChance > 0", true)]
public string[] allowedZones`
mainColorpublic Color mainColor
manualRoomNames`[HideIf("useWildcardPattern", true)]
[LabelText("Room Names")]
public List<string> manualRoomNames`
oncePerLoop`[ShowIf("@spawnChance > 0", true)]
public bool oncePerLoop`
softInstancepublic static Rift_Sidetrack softInstance
spawnChance`[Title("Natural Spawn Settings", null, TitleAlignments.Left, true, true)]
public float spawnChance`
useWildcardPattern`[Title("Destination", null, TitleAlignments.Left, true, true)]
public bool useWildcardPattern`
wildcardPattern`[ShowIf("useWildcardPattern", true)]
public string wildcardPattern`

Properties ​

NameDeclarationDescription
instancepublic static Rift_Sidetrack instance { get; }If you expect the instance to be null, you MUST USE softInstance in Update loops.This will call FindObjectOfType if current instance is null, which can be very expensive.
isValidpublic bool isValid { get; }Is this sidetrack rift valid for use? Sidetrack rifts with no rooms are invalid.

Methods ​

Awake() ​

csharp
protected override void Awake()

GetConfirmMessage() ​

csharp
protected virtual string GetConfirmMessage()

Returns: string

OnInteractRift(Hero) ​

csharp
protected override bool OnInteractRift(Hero hero)

Parameters:

NameTypeDescription
heroHero

Returns: bool

ShouldBeSavedWithRoom() ​

csharp
public override bool ShouldBeSavedWithRoom()

Returns: bool

TravelImmediately() ​

csharp
public virtual void TravelImmediately()

Maintained by the Shape of Dreams Modding Community