Class Rift_Sidetrack
Rift for moving in and out of sidetracking. e.g. Fragment of Radiance Rift to fight Apollonas
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
Rift_Sidetrack
Assembly: Dew.Core.dll
Syntax
[DewResourceLink(ResourceLinkBy.Name)]
public class Rift_Sidetrack : Rift, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, IBanRoomNodesNearby
Fields
allowedZones
Declaration
[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
Field Value
| Type |
Description |
| string[] |
|
mainColor
Declaration
Field Value
| Type |
Description |
| UnityEngine.Color |
|
manualRoomNames
Declaration
[HideIf("useWildcardPattern", true)]
[LabelText("Room Names")]
public List<string> manualRoomNames
Field Value
| Type |
Description |
| System.Collections.Generic.List<T><string> |
|
oncePerLoop
Declaration
[ShowIf("@spawnChance > 0", true)]
public bool oncePerLoop
Field Value
softInstance
Declaration
public static Rift_Sidetrack softInstance
Field Value
spawnChance
Declaration
[Title("Natural Spawn Settings", null, TitleAlignments.Left, true, true)]
public float spawnChance
Field Value
useWildcardPattern
Declaration
[Title("Destination", null, TitleAlignments.Left, true, true)]
public bool useWildcardPattern
Field Value
wildcardPattern
Declaration
[ShowIf("useWildcardPattern", true)]
public string wildcardPattern
Field Value
Properties
instance
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.
Declaration
public static Rift_Sidetrack instance { get; }
Property Value
isValid
Is this sidetrack rift valid for use? Sidetrack rifts with no rooms are invalid.
Declaration
public bool isValid { get; }
Property Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
GetConfirmMessage()
Declaration
protected virtual string GetConfirmMessage()
Returns
OnInteractRift(Hero)
Declaration
protected override bool OnInteractRift(Hero hero)
Parameters
| Type |
Name |
Description |
| Hero |
hero |
|
Returns
Overrides
ShouldBeSavedWithRoom()
Declaration
public override bool ShouldBeSavedWithRoom()
Returns
Overrides
Declaration
public virtual void TravelImmediately()
Implements
Extension Methods