parser

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const INDEX_NONE = int64(-1)

Variables

This section is empty.

Functions

func DecodeBGRA added in v0.1.0

func DecodeBGRA(data []byte, width int32, height int32) image.Image

func DecodeDXT1 added in v0.1.0

func DecodeDXT1(data []byte, width int32, height int32) image.Image

func DecodeDXT3 added in v0.1.0

func DecodeDXT3(data []byte, width int32, height int32) image.Image

func DecodeDXT5 added in v0.1.0

func DecodeDXT5(data []byte, width int32, height int32) image.Image

func DecodeFloatRGBA added in v0.1.0

func DecodeFloatRGBA(data []byte, width int32, height int32) image.Image

func DecodeG8 added in v0.1.0

func DecodeG8(data []byte, width int32, height int32) image.Image

func IsPakKeepFullDirectory added in v0.1.3

func IsPakKeepFullDirectory() bool

func RegisterClassResolver added in v0.0.8

func RegisterClassResolver(classType string, resolver ClassResolver)

func RegisterMapPropertyOverride added in v0.0.4

func RegisterMapPropertyOverride(name string, override *MapProperty)

func RegisterStructResolver added in v0.0.7

func RegisterStructResolver(structType string, resolver StructResolver)

Types

type ArrayStructProperty

type ArrayStructProperty struct {
	InnerTagData *FPropertyTag `json:"inner_tag_data"`
	Properties   interface{}   `json:"properties"`
}

type ClassResolver added in v0.0.8

type ClassResolver func(ctx context.Context, parser *PakParser, export *FObjectExport, size int32, uAsset *FPackageFileSummary) interface{}

type ClassType added in v0.0.8

type ClassType struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type ExportData added in v0.0.8

type ExportData struct {
	Properties []*FPropertyTag `json:"properties"`
	Data       interface{}     `json:"data"`
}

type FBox added in v0.0.6

type FBox struct {
	Min     *FVector `json:"min"`
	Max     *FVector `json:"max"`
	IsValid uint8    `json:"is_valid"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Box.h#L17

type FBox2D added in v0.0.6

type FBox2D struct {
	IsValid uint8      `json:"is_valid"`
	Min     *FVector2D `json:"min"`
	Max     *FVector2D `json:"max"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Box2D.h#L14

type FByteBulkData added in v0.1.0

type FByteBulkData struct {
	Header *FByteBulkDataHeader
	Data   []byte
}

type FByteBulkDataHeader added in v0.1.0

type FByteBulkDataHeader struct {
	BulkDataFlags int32
	ElementCount  int32
	SizeOnDisk    int32
	OffsetInFile  int64
}

type FColor added in v0.0.6

type FColor struct {
	R uint8 `json:"r"`
	G uint8 `json:"g"`
	B uint8 `json:"b"`
	A uint8 `json:"a"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Color.h#L421

type FCompressedChunk

type FCompressedChunk struct {
	UncompressedOffset int32 `json:"uncompressed_offset"`
	UncompressedSize   int32 `json:"uncompressed_size"`
	CompressedOffset   int32 `json:"compressed_offset"`
	CompressedSize     int32 `json:"compressed_size"`
}

type FEngineVersion

type FEngineVersion struct {
	Major      uint16 `json:"major"`
	Minor      uint16 `json:"minor"`
	Patch      uint16 `json:"patch"`
	ChangeList uint32 `json:"change_list"`
	Branch     string `json:"branch"`
}

type FExpressionInput added in v0.0.7

type FExpressionInput struct {
	Expression     uint32 `json:"expression"`
	ExpressionName string `json:"expression_name"`
	Mask           int32  `json:"mask"`
	MaskR          int32  `json:"mask_r"`
	MaskG          int32  `json:"mask_g"`
	MaskB          int32  `json:"mask_b"`
	MaskA          int32  `json:"mask_a"`
	OutputIndex    int32  `json:"output_index"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpression.h#L22

type FGenerationInfo

type FGenerationInfo struct {
	ExportCount int32 `json:"export_count"`
	NameCount   int32 `json:"name_count"`
}

type FLinearColor added in v0.0.6

type FLinearColor struct {
	R float32 `json:"r"`
	G float32 `json:"g"`
	B float32 `json:"b"`
	A float32 `json:"a"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Color.h#L31

type FMovieSceneEvaluationKey added in v0.0.6

type FMovieSceneEvaluationKey struct {
	SequenceID      *FMovieSceneSequenceID      `json:"sequence_id"`
	TrackIdentifier *FMovieSceneTrackIdentifier `json:"track_identifier"`
	SectionIndex    uint32                      `json:"section_index"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/MovieScene/Public/Evaluation/MovieSceneEvaluationKey.h#L12

type FMovieSceneFloatChannel added in v0.0.8

type FMovieSceneFloatChannel struct {
	PreInfinityExtrap  uint8                   `json:"pre_infinity_extrap"`
	PostInfinityExtrap uint8                   `json:"post_infinity_extrap"`
	Times              []FFrameNumber          `json:"times"`
	Values             []FMovieSceneFloatValue `json:"values"`
	DefaultValue       float32                 `json:"default_value"`
	HasDefaultValue    bool                    `json:"has_default_value"`
}

https://github.com/EpicGames/UnrealEngine/blob/4.22/Engine/Source/Runtime/MovieScene/Public/Channels/MovieSceneFloatChannel.h#L299

type FMovieSceneFloatValue added in v0.0.6

type FMovieSceneFloatValue struct {
	Value       float32                 `json:"value"`
	InterpMode  uint8                   `json:"interp_mode"`
	TangentMode uint8                   `json:"tangent_mode"`
	Tangent     *FMovieSceneTangentData `json:"tangent"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/MovieScene/Public/Channels/MovieSceneFloatChannel.h#L80

type FMovieSceneTangentData added in v0.0.8

type FMovieSceneTangentData struct {
	ArriveTangent       float32 `json:"arrive_tangent"`
	LeaveTangent        float32 `json:"leave_tangent"`
	TangentWeightMode   uint8   `json:"tangent_weight_mode"`
	ArriveTangentWeight float32 `json:"arrive_tangent_weight"`
	LeaveTangentWeight  float32 `json:"leave_tangent_weight"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/MovieScene/Public/Channels/MovieSceneFloatChannel.h#L17

type FNameEntrySerialized

type FNameEntrySerialized struct {
	Name                  string `json:"name"`
	NonCasePreservingHash uint16 `json:"non_case_preserving_hash"`
	CasePreservingHash    uint16 `json:"case_preserving_hash"`
}

type FObjectExport

type FObjectExport struct {
	ClassIndex                                   *FPackageIndex `json:"class_index"`
	SuperIndex                                   *FPackageIndex `json:"super_index"`
	TemplateIndex                                *FPackageIndex `json:"template_index"`
	OuterIndex                                   *FPackageIndex `json:"outer_index"`
	ObjectName                                   string         `json:"object_name"`
	Save                                         uint32         `json:"save"`
	SerialSize                                   int64          `json:"serial_size"`
	SerialOffset                                 int64          `json:"serial_offset"`
	ForcedExport                                 bool           `json:"forced_export"`
	NotForClient                                 bool           `json:"not_for_client"`
	NotForServer                                 bool           `json:"not_for_server"`
	PackageGuid                                  *FGuid         `json:"package_guid"`
	PackageFlags                                 uint32         `json:"package_flags"`
	NotAlwaysLoadedForEditorGame                 bool           `json:"not_always_loaded_for_editor_game"`
	IsAsset                                      bool           `json:"is_asset"`
	FirstExportDependency                        int32          `json:"first_export_dependency"`
	SerializationBeforeSerializationDependencies bool           `json:"serialization_before_serialization_dependencies"`
	CreateBeforeSerializationDependencies        bool           `json:"create_before_serialization_dependencies"`
	SerializationBeforeCreateDependencies        bool           `json:"serialization_before_create_dependencies"`
	CreateBeforeCreateDependencies               bool           `json:"create_before_create_dependencies"`
}

func (*FObjectExport) MarshalJSON added in v0.1.0

func (m *FObjectExport) MarshalJSON() ([]byte, error)

type FObjectImport

type FObjectImport struct {
	ClassPackage string         `json:"class_package"`
	ClassName    string         `json:"class_name"`
	OuterIndex   int32          `json:"outer_index"`
	ObjectName   string         `json:"object_name"`
	OuterPackage *FPackageIndex `json:"outer_package"`
}

func (*FObjectImport) MarshalJSON added in v0.1.0

func (m *FObjectImport) MarshalJSON() ([]byte, error)

type FPackageFileSummary

type FPackageFileSummary struct {
	Record *FPakEntry `json:"record"`

	Tag                         int32                   `json:"tag"`
	LegacyFileVersion           int32                   `json:"legacy_file_version"`
	LegacyUE3Version            int32                   `json:"legacy_ue_3_version"`
	FileVersionUE4              int32                   `json:"file_version_ue_4"`
	FileVersionLicenseeUE4      int32                   `json:"file_version_licensee_ue_4"`
	TotalHeaderSize             int32                   `json:"total_header_size"`
	FolderName                  string                  `json:"folder_name"`
	PackageFlags                uint32                  `json:"package_flags"`
	NameOffset                  int32                   `json:"name_offset"`
	GatherableTextDataCount     int32                   `json:"gatherable_text_data_count"`
	GatherableTextDataOffset    int32                   `json:"gatherable_text_data_offset"`
	ExportOffset                int32                   `json:"export_offset"`
	ImportOffset                int32                   `json:"import_offset"`
	DependsOffset               int32                   `json:"depends_offset"`
	StringAssetReferencesCount  int32                   `json:"string_asset_references_count"`
	StringAssetReferencesOffset int32                   `json:"string_asset_references_offset"`
	SearchableNamesOffset       int32                   `json:"searchable_names_offset"`
	ThumbnailTableOffset        int32                   `json:"thumbnail_table_offset"`
	GUID                        *FGuid                  `json:"guid"`
	Generations                 []*FGenerationInfo      `json:"generations"`
	SavedByEngineVersion        *FEngineVersion         `json:"saved_by_engine_version"`
	CompatibleWithEngineVersion *FEngineVersion         `json:"compatible_with_engine_version"`
	CompressionFlags            uint32                  `json:"compression_flags"`
	CompressedChunks            []*FCompressedChunk     `json:"compressed_chunks"`
	PackageSource               uint32                  `json:"package_source"`
	AdditionalPackagesToCook    []string                `json:"additional_packages_to_cook"`
	AssetRegistryDataOffset     int32                   `json:"asset_registry_data_offset"`
	BulkDataStartOffset         int32                   `json:"bulk_data_start_offset"`
	WorldTileInfoDataOffset     int32                   `json:"world_tile_info_data_offset"`
	ChunkIds                    []int32                 `json:"chunk_ids"`
	PreloadDependencyCount      int32                   `json:"preload_dependency_count"`
	PreloadDependencyOffset     int32                   `json:"preload_dependency_offset"`
	Names                       []*FNameEntrySerialized `json:"names"`
	Imports                     []*FObjectImport        `json:"imports"`
	Exports                     []*FObjectExport        `json:"exports"`
}

func (*FPackageFileSummary) MarshalJSON added in v0.1.0

func (m *FPackageFileSummary) MarshalJSON() ([]byte, error)

type FPackageIndex

type FPackageIndex struct {
	Index     int32       `json:"index"`
	Reference interface{} `json:"reference"`
}

func (*FPackageIndex) ClassName added in v0.0.8

func (index *FPackageIndex) ClassName() *string

func (*FPackageIndex) ObjectName added in v0.0.8

func (index *FPackageIndex) ObjectName() *string

type FPakCompressedBlock

type FPakCompressedBlock struct {
	StartOffset uint64 `json:"start_offset"`
	EndOffset   uint64 `json:"end_offset"`
}

type FPakEntry

type FPakEntry struct {
	FileName          string `json:"file_name"`
	FileOffset        int64  `json:"file_offset"`
	FileSize          int64  `json:"file_size"`
	UncompressedSize  int64  `json:"uncompressed_size"`
	CompressionMethod uint32 `json:"compression_method"`

	// Only version <= 1
	Timestamp uint64 `json:"timestamp"`

	DataSHA1Hash []byte `json:"data_sha_1_hash"`

	// Only version >= 3
	// Only compressed
	CompressionBlocks []*FPakCompressedBlock `json:"compression_blocks"`

	IsEncrypted          bool   `json:"is_encrypted"`
	CompressionBlockSize uint32 `json:"compression_block_size"`
}

func (*FPakEntry) ReadUAsset

func (record *FPakEntry) ReadUAsset(pak *PakFile, parser *PakParser) *FPackageFileSummary

func (*FPakEntry) ReadUExp

func (record *FPakEntry) ReadUExp(ctx context.Context, pak *PakFile, parser *PakParser, uAsset *FPackageFileSummary) map[*FObjectExport]*ExportData

type FPakEntryLocation added in v0.1.3

type FPakEntryLocation struct {
	Index int32 `json:"index"`
}

type FPakIndex

type FPakIndex struct {
	MountPoint string       `json:"mount_point"`
	Records    []*FPakEntry `json:"records"`
}

type FPakInfo

type FPakInfo struct {
	Magic           uint32 `json:"magic"`
	Version         uint32 `json:"version"`
	IndexOffset     uint64 `json:"index_offset"`
	IndexSize       uint64 `json:"index_size"`
	IndexSHA1Hash   []byte `json:"index_sha_1_hash"`
	CompressionType string `json:"compression_type"`
}

func (*FPakInfo) HeaderSize

func (pakInfo *FPakInfo) HeaderSize() uint64

type FPropertyTag

type FPropertyTag struct {
	Name         string      `json:"name"`
	PropertyType string      `json:"property_type"`
	TagData      interface{} `json:"tag_data"`
	Size         int32       `json:"size"`
	ArrayIndex   int32       `json:"array_index"`
	PropertyGuid *FGuid      `json:"property_guid"`
	Tag          interface{} `json:"tag"`
}

type FQuat added in v0.0.6

type FQuat struct {
	X float32 `json:"x"`
	Y float32 `json:"y"`
	Z float32 `json:"z"`
	W float32 `json:"w"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Quat.h#L28

type FRichCurveKey added in v0.0.6

type FRichCurveKey struct {
	InterpMode          uint8   `json:"interp_mode"`
	TangentMode         uint8   `json:"tangent_mode"`
	TangentWeightMode   uint8   `json:"tangent_weight_mode"`
	Time                float32 `json:"time"`
	ArriveTangent       float32 `json:"arrive_tangent"`
	ArriveTangentWeight float32 `json:"arrive_tangent_weight"`
	LeaveTangent        float32 `json:"leave_tangent"`
	LeaveTangentWeight  float32 `json:"leave_tangent_weight"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Engine/Classes/Curves/RichCurve.h#L74

type FRotator added in v0.0.6

type FRotator struct {
	Pitch float32 `json:"pitch"`
	Yaw   float32 `json:"yaw"`
	Roll  float32 `json:"roll"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Rotator.h#L18

type FScriptDelegate

type FScriptDelegate struct {
	Object int32  `json:"object"`
	Name   string `json:"name"`
}

type FSoftObjectPath

type FSoftObjectPath struct {
	AssetPathName string `json:"asset_path_name"`
	SubPath       string `json:"sub_path"`
}

type FText

type FText struct {
	Flags        uint32 `json:"flags"`
	HistoryType  int8   `json:"history_type"`
	Namespace    string `json:"namespace"`
	Key          string `json:"key"`
	SourceString string `json:"source_string"`
}

type FTexture2DMipMap added in v0.1.0

type FTexture2DMipMap struct {
	Data  *FByteBulkData
	SizeX int32
	SizeY int32
	SizeZ int32
}

type FTexturePlatformData added in v0.1.0

type FTexturePlatformData struct {
	SizeX       int32               `json:"size_x"`
	SizeY       int32               `json:"size_y"`
	NumSlices   int32               `json:"num_slices"`
	PixelFormat string              `json:"pixel_format"`
	FirstMip    int32               `json:"first_mip"`
	Mips        []*FTexture2DMipMap `json:"-"`
	IsVirtual   bool                `json:"is_virtual"`
}

type FVector4 added in v0.0.6

type FVector4 struct {
	X float32 `json:"x"`
	Y float32 `json:"y"`
	Z float32 `json:"z"`
	W float32 `json:"w"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Vector4.h#L17

type MapProperty

type MapProperty struct {
	KeyType   string `json:"key_type"`
	ValueType string `json:"value_type"`
}

type MapPropertyEntry added in v0.0.3

type MapPropertyEntry struct {
	Key   interface{} `json:"key"`
	Value interface{} `json:"value"`
}

type PakByteReader

type PakByteReader struct {
	PakReader

	Bytes  []byte
	Offset int64
}

func (*PakByteReader) Read

func (reader *PakByteReader) Read(b []byte) (n int, err error)

func (*PakByteReader) Seek

func (reader *PakByteReader) Seek(offset int64, whence int) (ret int64, err error)

type PakEntrySet

type PakEntrySet struct {
	ExportRecord *FPakEntry           `json:"export_record"`
	Summary      *FPackageFileSummary `json:"summary"`
	Exports      []PakExportSet       `json:"exports"`
}

type PakExportSet

type PakExportSet struct {
	Export *FObjectExport `json:"export"`
	Data   *ExportData    `json:"data"`
}

type PakFile

type PakFile struct {
	Footer *FPakInfo  `json:"footer"`
	Index  *FPakIndex `json:"index"`
}

type PakParser added in v0.0.5

type PakParser struct {
	// contains filtered or unexported fields
}

func NewParser added in v0.0.5

func NewParser(reader PakReader) *PakParser

func (*PakParser) DecodeFPakEntry added in v0.1.3

func (parser *PakParser) DecodeFPakEntry(entry *FPakEntry, version uint32)

func (*PakParser) DecodeLegacyPakEntries added in v0.1.3

func (parser *PakParser) DecodeLegacyPakEntries(pakIndex *FPakIndex, pakFooter *FPakInfo)

func (*PakParser) DecodePakEntries added in v0.1.3

func (parser *PakParser) DecodePakEntries(pakIndex *FPakIndex, pakFooter *FPakInfo)

func (*PakParser) Parse added in v0.0.5

func (parser *PakParser) Parse(ctx context.Context) *PakFile

func (*PakParser) Preload added in v0.0.5

func (parser *PakParser) Preload(n int32)

func (*PakParser) ProcessPak added in v0.0.5

func (parser *PakParser) ProcessPak(ctx context.Context, parseFile func(string) bool, handleEntry func(string, *PakEntrySet, *PakFile))

func (*PakParser) Read added in v0.0.5

func (parser *PakParser) Read(n int32) []byte

func (*PakParser) ReadClass added in v0.0.8

func (parser *PakParser) ReadClass(ctx context.Context, export *FObjectExport, size int32, uAsset *FPackageFileSummary) (interface{}, bool)

func (*PakParser) ReadFBox added in v0.0.6

func (parser *PakParser) ReadFBox() *FBox

func (*PakParser) ReadFBox2D added in v0.0.6

func (parser *PakParser) ReadFBox2D() *FBox2D

func (*PakParser) ReadFByteBulkData added in v0.1.0

func (parser *PakParser) ReadFByteBulkData(bulkOffset int64) *FByteBulkData

func (*PakParser) ReadFByteBulkDataHeader added in v0.1.0

func (parser *PakParser) ReadFByteBulkDataHeader() *FByteBulkDataHeader

func (*PakParser) ReadFColor added in v0.0.6

func (parser *PakParser) ReadFColor() *FColor

func (*PakParser) ReadFCompressedChunk added in v0.0.5

func (parser *PakParser) ReadFCompressedChunk() *FCompressedChunk

func (*PakParser) ReadFEngineVersion added in v0.0.5

func (parser *PakParser) ReadFEngineVersion() *FEngineVersion

func (*PakParser) ReadFExpressionInput added in v0.0.7

func (parser *PakParser) ReadFExpressionInput(names []*FNameEntrySerialized) *FExpressionInput

func (*PakParser) ReadFFrameNumber added in v0.0.6

func (parser *PakParser) ReadFFrameNumber() *FFrameNumber

func (*PakParser) ReadFGenerationInfo added in v0.0.5

func (parser *PakParser) ReadFGenerationInfo() *FGenerationInfo

func (*PakParser) ReadFGuid added in v0.0.5

func (parser *PakParser) ReadFGuid() *FGuid

func (*PakParser) ReadFIntPoint added in v0.0.6

func (parser *PakParser) ReadFIntPoint() *FIntPoint

func (*PakParser) ReadFIntVector added in v0.0.10

func (parser *PakParser) ReadFIntVector() *FIntVector

func (*PakParser) ReadFKeyHandle added in v0.0.8

func (parser *PakParser) ReadFKeyHandle() *FKeyHandle

func (*PakParser) ReadFLinearColor added in v0.0.6

func (parser *PakParser) ReadFLinearColor() *FLinearColor

func (*PakParser) ReadFMovieSceneEvaluationKey added in v0.0.6

func (parser *PakParser) ReadFMovieSceneEvaluationKey() *FMovieSceneEvaluationKey

func (*PakParser) ReadFMovieSceneFloatChannel added in v0.0.8

func (parser *PakParser) ReadFMovieSceneFloatChannel() *FMovieSceneFloatChannel

func (*PakParser) ReadFMovieSceneFloatValue added in v0.0.6

func (parser *PakParser) ReadFMovieSceneFloatValue() *FMovieSceneFloatValue

func (*PakParser) ReadFMovieSceneFrameRange added in v0.0.6

func (parser *PakParser) ReadFMovieSceneFrameRange() *FMovieSceneFrameRange

func (*PakParser) ReadFMovieSceneSegmentIdentifier added in v0.0.6

func (parser *PakParser) ReadFMovieSceneSegmentIdentifier() *FMovieSceneSegmentIdentifier

func (*PakParser) ReadFMovieSceneSequenceID added in v0.0.6

func (parser *PakParser) ReadFMovieSceneSequenceID() *FMovieSceneSequenceID

func (*PakParser) ReadFMovieSceneTangentData added in v0.0.8

func (parser *PakParser) ReadFMovieSceneTangentData() *FMovieSceneTangentData

func (*PakParser) ReadFMovieSceneTrackIdentifier added in v0.0.6

func (parser *PakParser) ReadFMovieSceneTrackIdentifier() *FMovieSceneTrackIdentifier

func (*PakParser) ReadFName added in v0.0.5

func (parser *PakParser) ReadFName(names []*FNameEntrySerialized) string

func (*PakParser) ReadFPackageIndex added in v0.0.5

func (parser *PakParser) ReadFPackageIndex(imports []*FObjectImport, exports []*FObjectExport) *FPackageIndex

func (*PakParser) ReadFPackageIndexInt added in v0.0.5

func (parser *PakParser) ReadFPackageIndexInt(index int32, imports []*FObjectImport, exports []*FObjectExport) *FPackageIndex

func (*PakParser) ReadFPropertyTag added in v0.0.5

func (parser *PakParser) ReadFPropertyTag(ctx context.Context, uAsset *FPackageFileSummary, readData bool, depth int) *FPropertyTag

func (*PakParser) ReadFPropertyTagLoop added in v0.0.8

func (parser *PakParser) ReadFPropertyTagLoop(ctx context.Context, uAsset *FPackageFileSummary) []*FPropertyTag

func (*PakParser) ReadFQuat added in v0.0.6

func (parser *PakParser) ReadFQuat() *FQuat

func (*PakParser) ReadFRichCurveKey added in v0.0.6

func (parser *PakParser) ReadFRichCurveKey() *FRichCurveKey

func (*PakParser) ReadFRotator added in v0.0.6

func (parser *PakParser) ReadFRotator() *FRotator

func (*PakParser) ReadFText added in v0.0.5

func (parser *PakParser) ReadFText() *FText

func (*PakParser) ReadFTexture2DMipMap added in v0.1.0

func (parser *PakParser) ReadFTexture2DMipMap(ctx context.Context, bulkOffset int64) *FTexture2DMipMap

func (*PakParser) ReadFTexturePlatformData added in v0.1.0

func (parser *PakParser) ReadFTexturePlatformData(ctx context.Context, bulkOffset int64) *FTexturePlatformData

func (*PakParser) ReadFVector added in v0.0.6

func (parser *PakParser) ReadFVector() *FVector

func (*PakParser) ReadFVector2D added in v0.0.6

func (parser *PakParser) ReadFVector2D() *FVector2D

func (*PakParser) ReadFVector4 added in v0.0.6

func (parser *PakParser) ReadFVector4() *FVector4

func (*PakParser) ReadFloat32 added in v0.0.5

func (parser *PakParser) ReadFloat32() float32

func (*PakParser) ReadInt32 added in v0.0.5

func (parser *PakParser) ReadInt32() int32

func (*PakParser) ReadInt64 added in v0.0.5

func (parser *PakParser) ReadInt64() int64

func (*PakParser) ReadString added in v0.0.5

func (parser *PakParser) ReadString() string

func (*PakParser) ReadStringNull added in v0.1.5

func (parser *PakParser) ReadStringNull() string

func (*PakParser) ReadStruct added in v0.0.6

func (parser *PakParser) ReadStruct(ctx context.Context, property *StructProperty, size int32, uAsset *FPackageFileSummary, depth int) (interface{}, bool)

func (*PakParser) ReadTRange added in v0.0.6

func (parser *PakParser) ReadTRange(t string) *TRange

func (*PakParser) ReadTRangeBound added in v0.0.6

func (parser *PakParser) ReadTRangeBound(t string) *TRangeBound

func (*PakParser) ReadTag added in v0.0.5

func (parser *PakParser) ReadTag(ctx context.Context, size int32, uAsset *FPackageFileSummary, propertyType string, tagData interface{}, name *string, depth int) interface{}

func (*PakParser) ReadUDataTable added in v0.0.8

func (parser *PakParser) ReadUDataTable(ctx context.Context, uAsset *FPackageFileSummary) *UDataTable

func (*PakParser) ReadUint16 added in v0.0.5

func (parser *PakParser) ReadUint16() uint16

func (*PakParser) ReadUint32 added in v0.0.5

func (parser *PakParser) ReadUint32() uint32

func (*PakParser) ReadUint64 added in v0.0.5

func (parser *PakParser) ReadUint64() uint64

func (*PakParser) Seek added in v0.0.5

func (parser *PakParser) Seek(offset int64, whence int) (ret int64, err error)

func (*PakParser) StartCompression added in v0.1.5

func (parser *PakParser) StartCompression(method uint32)

func (*PakParser) StopCompression added in v0.1.5

func (parser *PakParser) StopCompression()

func (*PakParser) TrackRead added in v0.0.5

func (parser *PakParser) TrackRead() *readTracker

func (*PakParser) UnTrackRead added in v0.0.5

func (parser *PakParser) UnTrackRead()

type PakReader

type PakReader interface {
	Seek(offset int64, whence int) (ret int64, err error)
	Read(b []byte) (n int, err error)
}

type PakZlibReader added in v0.1.5

type PakZlibReader struct {
	PakReader
	Reader io.ReadCloser
}

func (*PakZlibReader) Read added in v0.1.5

func (reader *PakZlibReader) Read(b []byte) (n int, err error)

func (*PakZlibReader) Seek added in v0.1.5

func (reader *PakZlibReader) Seek(_ int64, _ int) (ret int64, err error)

type StructProperty

type StructProperty struct {
	Type string `json:"type"`
	Guid *FGuid `json:"guid"`
}

type StructResolver added in v0.0.7

type StructResolver func(parser *PakParser, property *StructProperty, size int32, uAsset *FPackageFileSummary) interface{}

type StructType added in v0.0.6

type StructType struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type TRange added in v0.0.6

type TRange struct {
	LowerBound *TRangeBound `json:"lower_bound"`
	UpperBound *TRangeBound `json:"upper_bound"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/Range.h#L48

type TRangeBound added in v0.0.6

type TRangeBound struct {
	BoundType uint8       `json:"bound_type"`
	Value     interface{} `json:"value"`
}

https://github.com/SatisfactoryModdingUE/UnrealEngine/blob/4.22-CSS/Engine/Source/Runtime/Core/Public/Math/RangeBound.h#L34

type Texture2D added in v0.1.0

type Texture2D struct {
	Cooked   uint32
	Textures []*FTexturePlatformData
}

func (*Texture2D) ToImage added in v0.1.0

func (texture *Texture2D) ToImage(ctx context.Context) image.Image

type UInterfaceProperty

type UInterfaceProperty struct {
	InterfaceNumber uint32 `json:"interface_number"`
}

type UObject

type UObject struct {
	ExportType string          `json:"export_type"`
	Properties []*FPropertyTag `json:"properties"`
}

Directories

Path Synopsis
games

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL