Show / Hide Table of Contents

Class SaveTreeBaseRecord

Base record of SAVETREE.DAT.

Inheritance
Object
SaveTreeBaseRecord
CharacterRecord
ContainerRecord
DiseaseOrPoisonRecord
GuildMembershipRecord
ItemRecord
SpellRecord
TrappedSoulRecord
Namespace: DaggerfallConnect.Save
Assembly: Assembly-CSharp.dll
Syntax
public class SaveTreeBaseRecord

Constructors

| Improve this Doc View Source

SaveTreeBaseRecord()

Constructor.

Declaration
public SaveTreeBaseRecord()
| Improve this Doc View Source

SaveTreeBaseRecord(BinaryReader, Int32)

Reader constructor.

Declaration
public SaveTreeBaseRecord(BinaryReader reader, int length)
Parameters
Type Name Description
BinaryReader reader

Reader positioned at start of record data.

Int32 length

Length of data record to read.

Fields

| Improve this Doc View Source

children

Declaration
protected List<SaveTreeBaseRecord> children
Field Value
Type Description
List<SaveTreeBaseRecord>
| Improve this Doc View Source

failedRecord

Declaration
protected bool failedRecord
Field Value
Type Description
Boolean
| Improve this Doc View Source

LightDataLengthMultiplier

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

parent

Declaration
protected SaveTreeBaseRecord parent
Field Value
Type Description
SaveTreeBaseRecord
| Improve this Doc View Source

recordRoot

Declaration
protected RecordRoot recordRoot
Field Value
Type Description
RecordRoot
| Improve this Doc View Source

RecordRootLength

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

recordType

Declaration
protected RecordTypes recordType
Field Value
Type Description
RecordTypes
| Improve this Doc View Source

streamData

Declaration
protected byte[] streamData
Field Value
Type Description
Byte[]
| Improve this Doc View Source

streamLength

Declaration
protected int streamLength
Field Value
Type Description
Int32
| Improve this Doc View Source

streamPosition

Declaration
protected long streamPosition
Field Value
Type Description
Int64

Properties

| Improve this Doc View Source

Children

Gets children of this record.

Declaration
public List<SaveTreeBaseRecord> Children { get; }
Property Value
Type Description
List<SaveTreeBaseRecord>
| Improve this Doc View Source

IsFailedRecord

True if record failed to read (e.g. end of stream reached unexpectedly).

Declaration
public bool IsFailedRecord { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Parent

Gets or sets parent of this record.

Declaration
public SaveTreeBaseRecord Parent { get; set; }
Property Value
Type Description
SaveTreeBaseRecord
| Improve this Doc View Source

RecordData

Gets or sets actual record data, excluding RecordRoot header.

Declaration
public byte[] RecordData { get; set; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

RecordLength

Gets length of actual record data, excluding RecordRoot header.

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

RecordRoot

Gets or sets RecordRoot data of this record.

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

RecordType

Gets type of this record.

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

StreamData

Gets raw data as read from file stream.

Declaration
public byte[] StreamData { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

StreamLength

Gets length of raw data in source file stream.

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

StreamPosition

Gets position of data in source file stream.

Declaration
public long StreamPosition { get; }
Property Value
Type Description
Int64

Methods

| Improve this Doc View Source

CopyTo(SaveTreeBaseRecord)

Shallow copy record data from this record to another.

Declaration
public virtual void CopyTo(SaveTreeBaseRecord other)
Parameters
Type Name Description
SaveTreeBaseRecord other

Other record to receive data.

| Improve this Doc View Source

Open(BinaryReader, Int32)

Reads record data from stream.

Declaration
public virtual void Open(BinaryReader reader, int length)
Parameters
Type Name Description
BinaryReader reader

Reader positioned at start of record data.

Int32 length

Length of record data to read.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX