Class MonsterFile
Connects to MONSTER.BSA to enumerate and extract monster data. NOTE: This is a work in progress and is not complete.
Namespace: DaggerfallConnect.Arena2
Assembly: Assembly-CSharp.dll
Syntax
public class MonsterFile
Constructors
| Improve this Doc View SourceMonsterFile()
Default constructor.
Declaration
public MonsterFile()
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 SourceCount
Number of BSA records in MONSTER.BSA.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Filename
Gets default MONSTER.BSA filename.
Declaration
public static string Filename { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceGetMonsterClass(Int32)
Gets monster class data.
Declaration
public DFCareer GetMonsterClass(int monster)
Parameters
Type | Name | Description |
---|---|---|
Int32 | monster | Monster index. |
Returns
Type | Description |
---|---|
DFCareer | DFClass. |
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. |
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. |
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. |
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. |