Class TypeTreeNode
Inheritance
System.Object
TypeTreeNode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: AssetRipper.IO.Files.dll
Syntax
public class TypeTreeNode : ISerializedReadable, ISerializedWritable
Constructors
|
Improve this Doc
View Source
TypeTreeNode()
Declaration
|
Improve this Doc
View Source
TypeTreeNode(String, String, Int32, Boolean)
Declaration
public TypeTreeNode(string type, string name, int level, bool align)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
System.Boolean |
align |
|
|
Improve this Doc
View Source
Declaration
public TypeTreeNode(string type, string name, int level, int byteSize, int index, int version, int typeFlags, TransferMetaFlags metaFlag)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
name |
|
System.Int32 |
level |
|
System.Int32 |
byteSize |
|
System.Int32 |
index |
|
System.Int32 |
version |
|
System.Int32 |
typeFlags |
|
TransferMetaFlags |
metaFlag |
|
Properties
|
Improve this Doc
View Source
ByteSize
Size of the data value in bytes, e.g. 4 for int. -1 means that there is an array somewhere inside its hierarchy
Note: The padding for the alignment is not included in the size.
Declaration
public int ByteSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Index
Index of the field that is unique within a tree.
Normally starts with 0 and is incremented with each additional field.
Declaration
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Level
Depth of current type relative to root
Declaration
public byte Level { get; set; }
Property Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
Declaration
public TransferMetaFlags MetaFlag { get; set; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NameStrOffset
Declaration
public uint NameStrOffset { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
RefTypeHash
Declaration
public ulong RefTypeHash { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
Type
Name of the data type. This can be the name of any substructure or a static predefined type.
Declaration
public string Type { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TypeFlags
Array flag, set to 1 if type is "Array" or "TypelessData".
Declaration
public int TypeFlags { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TypeStrOffset
Declaration
public uint TypeStrOffset { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Version
Field type version, starts with 1 and is incremented after the type information has been significantly updated in a new release.
Equal to serializedVersion in Yaml format files
Declaration
public int Version { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
2019.1 and greater
Generation 19
Declaration
public static bool HasRefTypeHash(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
5.0.0a1 and greater
Generation 10
Declaration
public static bool IsFormat5(FormatVersion generation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Read(SerializedReader)
Declaration
public void Read(SerializedReader reader)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
ToString(StringBuilder)
Declaration
public StringBuilder ToString(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|
Returns
Type |
Description |
System.Text.StringBuilder |
|
|
Improve this Doc
View Source
Write(SerializedWriter)
Declaration
public void Write(SerializedWriter writer)
Parameters
Implements