C# Class TagTool.Cache.ResourceReference

Show file Open project: TheGuardians/TagTool Class Usage Examples

Public Properties

Property Type Description
Checksum uint
CompressedSize uint
CompressionType sbyte
D3DObjectFixups List
DecompressedSize uint
DefinitionAddress ResourceAddress
DefinitionData byte[]
DefinitionFixups List
Index int
Owner TagTool.TagGroups.TagInstance
RawSize uint
Salt ushort
Type sbyte
Unknown0 sbyte
Unknown1 sbyte
Unknown18 uint
Unknown1C uint
Unknown20 uint
Unknown37 byte
Unknown68 int

Public Methods

Method Description
ChangeLocation ( ResourceLocation newLocation ) : void

Changes the location of the resource by changing its location flags.

DisableChecksum ( ) : void

Disables the resource's checksum by changing its location flags.

GetLocation ( ) : ResourceLocation

Gets the location of the resource by checking its location flags.

Method Details

ChangeLocation() public method

Changes the location of the resource by changing its location flags.
Unsupported resource location
public ChangeLocation ( ResourceLocation newLocation ) : void
newLocation ResourceLocation The new location.
return void

DisableChecksum() public method

Disables the resource's checksum by changing its location flags.
public DisableChecksum ( ) : void
return void

GetLocation() public method

Gets the location of the resource by checking its location flags.
The resource does not have a location flag set
public GetLocation ( ) : ResourceLocation
return ResourceLocation

Property Details

Checksum public property

Gets or sets the checksum of the resource data. Only used if OldResourceLocationFlags.UseChecksum or OldResourceLocationFlags.UseChecksum2 are set.
public uint Checksum
return uint

CompressedSize public property

Gets or sets the total size of the compressed resource data, including chunk headers.
public uint CompressedSize
return uint

CompressionType public property

public sbyte CompressionType
return sbyte

D3DObjectFixups public property

Gets or sets the D3D object fixups to apply to the definition data.
public List D3DObjectFixups
return List

DecompressedSize public property

Gets or sets the size of the decompressed resource data.
public uint DecompressedSize
return uint

DefinitionAddress public property

Gets or sets the address of the resource's definition structure within its definition data.
public ResourceAddress DefinitionAddress
return ResourceAddress

DefinitionData public property

Gets or sets the buffer containing the resource's definition data.
public byte[] DefinitionData
return byte[]

DefinitionFixups public property

Gets or sets the fixups to apply to the definition data.
public List DefinitionFixups
return List

Index public property

Gets or sets the index of the resource within its .dat file.
public int Index
return int

Owner public property

Gets or sets the tag that owns the resource.
public TagInstance,TagTool.TagGroups Owner
return TagTool.TagGroups.TagInstance

RawSize public property

public uint RawSize
return uint

Salt public property

public ushort Salt
return ushort

Type public property

public sbyte Type
return sbyte

Unknown0 public property

public sbyte Unknown0
return sbyte

Unknown1 public property

public sbyte Unknown1
return sbyte

Unknown18 public property

public uint Unknown18
return uint

Unknown1C public property

public uint Unknown1C
return uint

Unknown20 public property

public uint Unknown20
return uint

Unknown37 public property

public byte Unknown37
return byte

Unknown68 public property

public int Unknown68
return int