Show / Hide Table of Contents

Class MonsterFile

Connects to MONSTER.BSA to enumerate and extract monster data. NOTE: This is a work in progress and is not complete.

Inheritance
Object
MonsterFile
Namespace: DaggerfallConnect.Arena2
Assembly: Assembly-CSharp.dll
Syntax
public class MonsterFile

Constructors

| Improve this Doc View Source

MonsterFile()

Default constructor.

Declaration
public MonsterFile()
| Improve this Doc View Source

MonsterFile(String, FileUsage, Boolean)

Load constructor.

Declaration
public MonsterFile(string filePath, FileUsage usage, bool readOnly)
Parameters
Type Name Description
String filePath

Absolute path to MONSTER.BSA.

FileUsage usage

Determines if the BSA file will read from disk or memory.

Boolean readOnly

File will be read-only if true, read-write if false.

Properties

| Improve this Doc View Source

Count

Number of BSA records in MONSTER.BSA.

Declaration
public int Count { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Filename

Gets default MONSTER.BSA filename.

Declaration
public static string Filename { get; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

GetMonsterClass(Int32)

Gets monster class data.

Declaration
public DFCareer GetMonsterClass(int monster)
Parameters
Type Name Description
Int32 monster

Monster index.

Returns
Type Description
DFCareer

DFClass.

| Improve this Doc View Source

GetRecordBytes(Int32)

Gets data from specified record.

Declaration
public byte[] GetRecordBytes(int record)
Parameters
Type Name Description
Int32 record

Index of record.

Returns
Type Description
Byte[]

Byte array of record data.

| Improve this Doc View Source

GetRecordName(Int32)

Gets name of specified record.

Declaration
public string GetRecordName(int record)
Parameters
Type Name Description
Int32 record

Index of record.

Returns
Type Description
String

Name of the record.

| Improve this Doc View Source

Load(String, FileUsage, Boolean)

Load MONSTER.BSA file.

Declaration
public bool Load(string filePath, FileUsage usage, bool readOnly)
Parameters
Type Name Description
String filePath

Absolute path to MONSTER.BSA file.

FileUsage usage

Specify if file will be accessed from disk, or loaded into RAM.

Boolean readOnly

File will be read-only if true, read-write if false.

Returns
Type Description
Boolean

True if successful, otherwise false.

| Improve this Doc View Source

LoadMonster(Int32, out DFCareer)

Load monster record into memory and decompose it for use.

Declaration
public bool LoadMonster(int monster, out DFCareer monsterClassOut)
Parameters
Type Name Description
Int32 monster

Monster index.

DFCareer monsterClassOut
Returns
Type Description
Boolean

True if successful.

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • MonsterFile()
    • MonsterFile(String, FileUsage, Boolean)
  • Properties
    • Count
    • Filename
  • Methods
    • GetMonsterClass(Int32)
    • GetRecordBytes(Int32)
    • GetRecordName(Int32)
    • Load(String, FileUsage, Boolean)
    • LoadMonster(Int32, out DFCareer)
Back to top Generated by DocFX