Show / Hide Table of Contents

Class DaggerfallLoot

Enables a world object to be lootable by player.

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

Fields

| Improve this Doc View Source

ContainerImage

Declaration
public InventoryContainerImages ContainerImage
Field Value
Type Description
InventoryContainerImages
| Improve this Doc View Source

ContainerType

Declaration
public LootContainerTypes ContainerType
Field Value
Type Description
LootContainerTypes
| Improve this Doc View Source

customDrop

Declaration
public bool customDrop
Field Value
Type Description
Boolean
| Improve this Doc View Source

entityName

Declaration
public string entityName
Field Value
Type Description
String
| Improve this Doc View Source

houseOwned

Declaration
public bool houseOwned
Field Value
Type Description
Boolean
| Improve this Doc View Source

isEnemyClass

Declaration
public bool isEnemyClass
Field Value
Type Description
Boolean
| Improve this Doc View Source

playerOwned

Declaration
public bool playerOwned
Field Value
Type Description
Boolean
| Improve this Doc View Source

randomTreasureMarkerDim

Declaration
public const int randomTreasureMarkerDim = 40
Field Value
Type Description
Int32
| Improve this Doc View Source

stockedDate

Declaration
public int stockedDate
Field Value
Type Description
Int32
| Improve this Doc View Source

TextureArchive

Declaration
public int TextureArchive
Field Value
Type Description
Int32
| Improve this Doc View Source

TextureRecord

Declaration
public int TextureRecord
Field Value
Type Description
Int32
| Improve this Doc View Source

WorldContext

Declaration
public WorldContext WorldContext
Field Value
Type Description
WorldContext

Properties

| Improve this Doc View Source

Items

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

LoadID

Declaration
public ulong LoadID { get; set; }
Property Value
Type Description
UInt64

Methods

| Improve this Doc View Source

CreateStockedDate(DaggerfallDateTime)

Declaration
public static int CreateStockedDate(DaggerfallDateTime date)
Parameters
Type Name Description
DaggerfallDateTime date
Returns
Type Description
Int32
| Improve this Doc View Source

GenerateItems(String, ItemCollection)

Generates items in the given item collection based on loot table key. Any existing items will be destroyed.

Declaration
public static void GenerateItems(string LootTableKey, ItemCollection collection)
Parameters
Type Name Description
String LootTableKey
ItemCollection collection
| Improve this Doc View Source

OnInventoryClose()

Called when this loot collection is closed by inventory window

Declaration
public void OnInventoryClose()
| Improve this Doc View Source

OnInventoryOpen()

Called when this loot collection is opened by inventory window

Declaration
public void OnInventoryOpen()
| Improve this Doc View Source

RandomlyAddMap(Int32, ItemCollection)

Randomly add a map

Declaration
public static void RandomlyAddMap(int chance, ItemCollection collection)
Parameters
Type Name Description
Int32 chance
ItemCollection collection
| Improve this Doc View Source

RandomlyAddPotion(Int32, ItemCollection)

Randomly add a potion

Declaration
public static void RandomlyAddPotion(int chance, ItemCollection collection)
Parameters
Type Name Description
Int32 chance
ItemCollection collection
| Improve this Doc View Source

RandomlyAddPotionRecipe(Int32, ItemCollection)

Randomly add a potion recipe

Declaration
public static void RandomlyAddPotionRecipe(int chance, ItemCollection collection)
Parameters
Type Name Description
Int32 chance
ItemCollection collection
| Improve this Doc View Source

StockHouseContainer(PlayerGPS.DiscoveredBuilding)

Declaration
public void StockHouseContainer(PlayerGPS.DiscoveredBuilding buildingData)
Parameters
Type Name Description
PlayerGPS.DiscoveredBuilding buildingData
| Improve this Doc View Source

StockShopShelf(PlayerGPS.DiscoveredBuilding)

Declaration
public void StockShopShelf(PlayerGPS.DiscoveredBuilding buildingData)
Parameters
Type Name Description
PlayerGPS.DiscoveredBuilding buildingData

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