Show / Hide Table of Contents

Class PaintFile

Reads data from PAINT.DAT.

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

Constructors

| Improve this Doc View Source

PaintFile()

Default constructor.

Declaration
public PaintFile()
| Improve this Doc View Source

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 Source

recordLength

Length of each record in bytes.

Declaration
public const int recordLength = 40
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

Filename

Gets default PAINT.DAT filename.

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

Methods

| Improve this Doc View Source

Load(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.

| Improve this Doc View Source

Read(UInt32)

Read file.

Declaration
public byte[] Read(uint recordIndex)
Parameters
Type Name Description
UInt32 recordIndex
Returns
Type Description
Byte[]
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX