Table of Contents

Class DungeonEntrance

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Interactable representing a dungeon entrance. Displays a title and optional image in the UI.

[RequireComponent(typeof(MapMarker))]
public class DungeonEntrance : Interactable, ISpawnable, IDungeonEntrance, IInteractable, ISceneObject, IMapMarkerIconSource
Inheritance
Object
Component
Behaviour
MonoBehaviour
NetworkBehaviour
DungeonEntrance
Implements
Inherited Members
NetworkBehaviour.IsSpawned
NetworkBehaviour.ComponentIndex
NetworkBehaviour.NetworkObject
NetworkBehaviour.MAXIMUM_NETWORKBEHAVIOURS
NetworkBehaviour.UNSET_NETWORKBEHAVIOUR_ID
NetworkBehaviour.ToString()
NetworkBehaviour.Reset()
NetworkBehaviour.OnValidate()
NetworkBehaviour.IsBehaviourReconciling
NetworkBehaviour.ClearReplicateCache()
NetworkBehaviour.RequestReconcileSends()
NetworkBehaviour.CreateReconcile()
NetworkBehaviour.Reconcile_Reader_Remote<T>(PooledReader, ref T)
NetworkBehaviour.ClearBuffedRpcs()
NetworkBehaviour.IsClientOnly
NetworkBehaviour.IsServerOnly
NetworkBehaviour.IsHost
NetworkBehaviour.IsClient
NetworkBehaviour.IsServer
NetworkBehaviour.IsDeinitializing
NetworkBehaviour.NetworkManager
NetworkBehaviour.ServerManager
NetworkBehaviour.ClientManager
NetworkBehaviour.ObserverManager
NetworkBehaviour.TransportManager
NetworkBehaviour.TimeManager
NetworkBehaviour.SceneManager
NetworkBehaviour.PredictionManager
NetworkBehaviour.RollbackManager
NetworkBehaviour.NetworkObserver
NetworkBehaviour.IsClientInitialized
NetworkBehaviour.IsClientStarted
NetworkBehaviour.IsClientOnlyInitialized
NetworkBehaviour.IsClientOnlyStarted
NetworkBehaviour.IsServerInitialized
NetworkBehaviour.IsServerStarted
NetworkBehaviour.IsServerOnlyInitialized
NetworkBehaviour.IsServerOnlyStarted
NetworkBehaviour.IsHostInitialized
NetworkBehaviour.IsHostStarted
NetworkBehaviour.IsOffline
NetworkBehaviour.IsNetworked
NetworkBehaviour.GetIsNetworked()
NetworkBehaviour.IsManagerReconciling
NetworkBehaviour.Observers
NetworkBehaviour.IsOwner
NetworkBehaviour.IsController
NetworkBehaviour.HasAuthority
NetworkBehaviour.Owner
NetworkBehaviour.OwnerId
NetworkBehaviour.ObjectId
NetworkBehaviour.LocalConnection
NetworkBehaviour.OwnerMatches(NetworkConnection)
NetworkBehaviour.Despawn(GameObject, DespawnType?)
NetworkBehaviour.Despawn(NetworkObject, DespawnType?)
NetworkBehaviour.Despawn(DespawnType?)
NetworkBehaviour.Spawn(GameObject, NetworkConnection, Scene)
NetworkBehaviour.Spawn(NetworkObject, NetworkConnection, Scene)
NetworkBehaviour.RemoveOwnership()
NetworkBehaviour.GiveOwnership(NetworkConnection)
NetworkBehaviour.GetInstance<T>()
NetworkBehaviour.TryRegisterInstance<T>(T)
NetworkBehaviour.UnregisterInstance<T>()
NetworkBehaviour.CanLog(LoggingType)
NetworkBehaviour.OnStartServerCalled
NetworkBehaviour.OnStartClientCalled
NetworkBehaviour.OnStartNetwork()
NetworkBehaviour.OnStopNetwork()
NetworkBehaviour.OnStopServer()
NetworkBehaviour.OnOwnershipServer(NetworkConnection)
NetworkBehaviour.OnSpawnServer(NetworkConnection)
NetworkBehaviour.OnDespawnServer(NetworkConnection)
NetworkBehaviour.OnStartClient()
NetworkBehaviour.OnStopClient()
NetworkBehaviour.OnOwnershipClient(NetworkConnection)
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.name
Object.hideFlags

Remarks

Also the thing that puts the entrance on the minimap and the world map: it requires a MapMarker and fills it in on awake, so an entrance is mapped without any authoring beyond placing it. It appears once the player has explored the chunk it stands in — see Discovered — which for a fixture the player has to walk to is the same thing as appearing on approach, and it stays on the map afterwards.

Fields

AchievementTemplate

Achievement to increment when a player enters this dungeon.

public AchievementTemplate AchievementTemplate

Field Value

AchievementTemplate

DungeonImage

The image representing the dungeon entrance in the UI (client only).

public Sprite DungeonImage

Field Value

Sprite

DungeonName

The name of the dungeon associated with this entrance.

public string DungeonName

Field Value

string

Template

The dungeon this entrance leads to: its description, artwork and difficulty list.

public DungeonTemplate Template

Field Value

DungeonTemplate

Remarks

Optional. An entrance without one leads to a dungeon with a single unnamed difficulty and default rules, which is exactly how every entrance behaved before difficulties existed — so leaving it unset is a working configuration, not a broken one.

Properties

ResolvedDungeonName

The name drawn beside the entrance's map marker.

public string ResolvedDungeonName { get; }

Property Value

string

Remarks

The template's player-facing name wins over the field the entrance was authored with: that field is the dungeon scene name — an internal identifier — while the template carries what the dungeon is actually called, which is also what the dungeon finder shows.

Title

Gets the display title for the dungeon entrance.

public override string Title { get; }

Property Value

string

Methods

OnAwake()

Fills in the marker that puts this entrance on both maps.

public override void OnAwake()

Remarks

Only the three fields that describe what this object is are written: its type, the rule that decides when it may be drawn, and a label when the marker has none. Icon, IconSize, Priority, ClampToEdge and the two ShowOn flags are left alone, so an author who wants to override any of them on a particular entrance still can.

The marker is created if it is missing. RequireComponentAttribute is an editor-time guarantee — it adds the component when this one is added, and to existing objects when the scene is next opened — so a build taken from a scene that was never re-saved in the editor would otherwise have an entrance with no marker at all, and the only symptom would be an entrance that silently never appears on the map.