Class SaveTreeBaseRecord
Base record of SAVETREE.DAT.
Inheritance
SaveTreeBaseRecord
Assembly: Assembly-CSharp.dll
Syntax
public class SaveTreeBaseRecord
Constructors
|
Improve this Doc
View Source
SaveTreeBaseRecord()
Declaration
public SaveTreeBaseRecord()
|
Improve this Doc
View Source
SaveTreeBaseRecord(BinaryReader, Int32)
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
|
Improve this Doc
View Source
failedRecord
Declaration
protected bool failedRecord
Field Value
|
Improve this Doc
View Source
LightDataLengthMultiplier
Declaration
public const int LightDataLengthMultiplier = 39
Field Value
|
Improve this Doc
View Source
parent
Declaration
protected SaveTreeBaseRecord parent
Field Value
|
Improve this Doc
View Source
recordRoot
Declaration
protected RecordRoot recordRoot
Field Value
|
Improve this Doc
View Source
RecordRootLength
Declaration
public const int RecordRootLength = 71
Field Value
|
Improve this Doc
View Source
recordType
Declaration
protected RecordTypes recordType
Field Value
|
Improve this Doc
View Source
streamData
Declaration
protected byte[] streamData
Field Value
|
Improve this Doc
View Source
streamLength
Declaration
protected int streamLength
Field Value
|
Improve this Doc
View Source
streamPosition
Declaration
protected long streamPosition
Field Value
Properties
|
Improve this Doc
View Source
Children
Gets children of this record.
Declaration
public List<SaveTreeBaseRecord> Children { get; }
Property Value
|
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
|
Improve this Doc
View Source
Parent
Gets or sets parent of this record.
Declaration
public SaveTreeBaseRecord Parent { get; set; }
Property Value
|
Improve this Doc
View Source
RecordData
Gets or sets actual record data, excluding RecordRoot header.
Declaration
public byte[] RecordData { get; set; }
Property Value
|
Improve this Doc
View Source
RecordLength
Gets length of actual record data, excluding RecordRoot header.
Declaration
public int RecordLength { get; }
Property Value
|
Improve this Doc
View Source
RecordRoot
Gets or sets RecordRoot data of this record.
Declaration
public RecordRoot RecordRoot { get; set; }
Property Value
|
Improve this Doc
View Source
RecordType
Gets type of this record.
Declaration
public RecordTypes RecordType { get; }
Property Value
|
Improve this Doc
View Source
StreamData
Gets raw data as read from file stream.
Declaration
public byte[] StreamData { get; }
Property Value
|
Improve this Doc
View Source
StreamLength
Gets length of raw data in source file stream.
Declaration
public int StreamLength { get; }
Property Value
|
Improve this Doc
View Source
StreamPosition
Gets position of data in source file stream.
Declaration
public long StreamPosition { get; }
Property Value
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
|
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.
|