Class PaintFile
Reads data from PAINT.DAT.
Namespace: DaggerfallConnect.Arena2
Assembly: Assembly-CSharp.dll
Syntax
public class PaintFile
Constructors
| Improve this Doc View SourcePaintFile()
Default constructor.
Declaration
public PaintFile()
PaintFile(String, FileUsage, Boolean)
Load constructor.
Declaration
public PaintFile(string filePath, FileUsage usage, bool readOnly)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | Absolute path to PAINT.DAT. |
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. |
Fields
| Improve this Doc View SourcerecordLength
Length of each record in bytes.
Declaration
public const int recordLength = 40
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceFilename
Gets default PAINT.DAT filename.
Declaration
public static string Filename { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceLoad(String, FileUsage, Boolean)
Load PAINT.DAT file.
Declaration
public bool Load(string filePath, FileUsage usage, bool readOnly)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | Absolute path to PAINT.DAT 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. |
Read(UInt32)
Read file.
Declaration
public byte[] Read(uint recordIndex)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | recordIndex |
Returns
Type | Description |
---|---|
Byte[] |