Class DaggerfallInterior
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallInterior : MonoBehaviour
Fields
| Improve this Doc View SourcepeopleFlats
Declaration
public const string peopleFlats = "People Flats"
Field Value
| Type | Description |
|---|---|
| String |
Properties
| Improve this Doc View SourceBuildingData
Declaration
public DFLocation.BuildingData BuildingData { get; }
Property Value
| Type | Description |
|---|---|
| DFLocation.BuildingData |
DoorOwner
Gets transform owning door array.
Declaration
public Transform DoorOwner { get; }
Property Value
| Type | Description |
|---|---|
| Transform |
EntryDoor
Gets the door player clicked on to enter building.
Declaration
public StaticDoor EntryDoor { get; }
Property Value
| Type | Description |
|---|---|
| StaticDoor |
ExteriorDoors
Gets door array from owner.
Declaration
public DaggerfallStaticDoors ExteriorDoors { get; }
Property Value
| Type | Description |
|---|---|
| DaggerfallStaticDoors |
Markers
Gets array of markers in this building interior.
Declaration
public DaggerfallInterior.InteriorEditorMarker[] Markers { get; }
Property Value
| Type | Description |
|---|---|
| DaggerfallInterior.InteriorEditorMarker[] |
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 SourceDoLayout(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. |
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. |
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. |
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 |
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. |
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. |
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. |
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[] |
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. |
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 |
GetSceneName(Int32, Int32)
Declaration
public static string GetSceneName(int mapID, int buildingKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | mapID | |
| Int32 | buildingKey |
Returns
| Type | Description |
|---|---|
| String |
UpdateNpcPresence()
Update NPC presence for shops and guilds after resting/idling.
Declaration
public void UpdateNpcPresence()