Show / Hide Table of Contents

Class DaggerfallInterior

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
DaggerfallInterior
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallInterior : MonoBehaviour

Fields

| Improve this Doc View Source

peopleFlats

Declaration
public const string peopleFlats = "People Flats"
Field Value
Type Description
String

Properties

| Improve this Doc View Source

BuildingData

Declaration
public DFLocation.BuildingData BuildingData { get; }
Property Value
Type Description
DFLocation.BuildingData
| Improve this Doc View Source

DoorOwner

Gets transform owning door array.

Declaration
public Transform DoorOwner { get; }
Property Value
Type Description
Transform
| Improve this Doc View Source

EntryDoor

Gets the door player clicked on to enter building.

Declaration
public StaticDoor EntryDoor { get; }
Property Value
Type Description
StaticDoor
| Improve this Doc View Source

ExteriorDoors

Gets door array from owner.

Declaration
public DaggerfallStaticDoors ExteriorDoors { get; }
Property Value
Type Description
DaggerfallStaticDoors
| Improve this Doc View Source

Markers

Gets array of markers in this building interior.

Declaration
public DaggerfallInterior.InteriorEditorMarker[] Markers { get; }
Property Value
Type Description
DaggerfallInterior.InteriorEditorMarker[]
| Improve this Doc View Source

SpawnPoints

Gets array of spawn points in this building interior.

Declaration
public Vector3[] SpawnPoints { get; }
Property Value
Type Description
Vector3[]

Methods

| Improve this Doc View Source

DoLayout(Transform, StaticDoor, ClimateBases, PlayerGPS.DiscoveredBuilding)

Layout interior based on data in exterior door and optional location for climate settings.

Declaration
public bool DoLayout(Transform doorOwner, StaticDoor door, ClimateBases climateBase, PlayerGPS.DiscoveredBuilding buildingData)
Parameters
Type Name Description
Transform doorOwner

Parent transform owning door array.

StaticDoor door

Exterior door player clicked on.

ClimateBases climateBase
PlayerGPS.DiscoveredBuilding buildingData
Returns
Type Description
Boolean

True if successful.

| Improve this Doc View Source

DoLayoutAutomap(Transform, StaticDoor, ClimateBases)

Layout interior for automap based on data in exterior door and optional location for climate settings.

Declaration
public bool DoLayoutAutomap(Transform doorOwner, StaticDoor door, ClimateBases climateBase)
Parameters
Type Name Description
Transform doorOwner

Parent transform owning door array.

StaticDoor door

Exterior door player clicked on.

ClimateBases climateBase
Returns
Type Description
Boolean

True if successful.

| Improve this Doc View Source

FindClosestEnterMarker(Vector3, out Vector3)

Finds closest entrance marker to door position.

Declaration
public bool FindClosestEnterMarker(Vector3 playerPos, out Vector3 closestMarkerOut)
Parameters
Type Name Description
Vector3 playerPos

Player position in world space.

Vector3 closestMarkerOut

Closest enter marker to door position.

Returns
Type Description
Boolean

True if successful.

| Improve this Doc View Source

FindClosestInteriorDoor(Vector3, out Vector3, out Vector3)

Declaration
public bool FindClosestInteriorDoor(Vector3 playerPos, out Vector3 closestDoorPositionOut, out Vector3 closestDoorNormalOut)
Parameters
Type Name Description
Vector3 playerPos
Vector3 closestDoorPositionOut
Vector3 closestDoorNormalOut
Returns
Type Description
Boolean
| Improve this Doc View Source

FindClosestMarker(out Vector3, DaggerfallInterior.InteriorMarkerTypes, Vector3)

Finds closest marker to player position.

Declaration
public bool FindClosestMarker(out Vector3 closestMarkerOut, DaggerfallInterior.InteriorMarkerTypes type, Vector3 playerPos)
Parameters
Type Name Description
Vector3 closestMarkerOut

Closest marker of specified type to player if found.

DaggerfallInterior.InteriorMarkerTypes type

Marker type.

Vector3 playerPos

Player position.

Returns
Type Description
Boolean

True if successful.

| Improve this Doc View Source

FindLowestOuterInteriorDoor(out Vector3, out Vector3)

Finds the interior door that is closest to ground level and farthest from the center of the building.

Declaration
public bool FindLowestOuterInteriorDoor(out Vector3 lowestDoorPositionOut, out Vector3 lowestDoorNormalOut)
Parameters
Type Name Description
Vector3 lowestDoorPositionOut

Position of lowest door in scene.

Vector3 lowestDoorNormalOut

Normal vector of lowest door in scene.

Returns
Type Description
Boolean

True if successful. False if no doors are found.

| Improve this Doc View Source

FindMarker(out Vector3, DaggerfallInterior.InteriorMarkerTypes, Boolean)

Find a specific marker. Will stop searching at first item found, or at a random-ish marker if random=true.

Declaration
public bool FindMarker(out Vector3 markerOut, DaggerfallInterior.InteriorMarkerTypes type, bool random = false)
Parameters
Type Name Description
Vector3 markerOut
DaggerfallInterior.InteriorMarkerTypes type
Boolean random
Returns
Type Description
Boolean

True if at least one marker found.

| Improve this Doc View Source

FindMarkers(DaggerfallInterior.InteriorMarkerTypes)

Find all marker positions of a specific type.

Declaration
public Vector3[] FindMarkers(DaggerfallInterior.InteriorMarkerTypes type)
Parameters
Type Name Description
DaggerfallInterior.InteriorMarkerTypes type
Returns
Type Description
Vector3[]
| Improve this Doc View Source

GetRandomSpawnPoint(out Vector3)

Helper to get a random spawn point from interior list (if present).

Declaration
public bool GetRandomSpawnPoint(out Vector3 localPositionOut)
Parameters
Type Name Description
Vector3 localPositionOut

Local position of spawn point.

Returns
Type Description
Boolean

True if spawn point found.

| Improve this Doc View Source

GetSceneName(DFLocation, StaticDoor)

Gets the scene name for the interior behind the given door.

Declaration
public static string GetSceneName(DFLocation location, StaticDoor door)
Parameters
Type Name Description
DFLocation location
StaticDoor door
Returns
Type Description
String
| Improve this Doc View Source

GetSceneName(Int32, Int32)

Declaration
public static string GetSceneName(int mapID, int buildingKey)
Parameters
Type Name Description
Int32 mapID
Int32 buildingKey
Returns
Type Description
String
| Improve this Doc View Source

UpdateNpcPresence()

Update NPC presence for shops and guilds after resting/idling.

Declaration
public void UpdateNpcPresence()

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX