C# Class TagTool.Cache.ResourceReference

ファイルを表示 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_oe 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_oe property

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

CompressionType public_oe property

public sbyte CompressionType
return sbyte

D3DObjectFixups public_oe property

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

DecompressedSize public_oe property

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

DefinitionAddress public_oe property

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

DefinitionData public_oe property

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

DefinitionFixups public_oe property

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

Index public_oe property

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

Owner public_oe property

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

RawSize public_oe property

public uint RawSize
return uint

Salt public_oe property

public ushort Salt
return ushort

Type public_oe property

public sbyte Type
return sbyte

Unknown0 public_oe property

public sbyte Unknown0
return sbyte

Unknown1 public_oe property

public sbyte Unknown1
return sbyte

Unknown18 public_oe property

public uint Unknown18
return uint

Unknown1C public_oe property

public uint Unknown1C
return uint

Unknown20 public_oe property

public uint Unknown20
return uint

Unknown37 public_oe property

public byte Unknown37
return byte

Unknown68 public_oe property

public int Unknown68
return int