kcesfixtures

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbaFilePath

func AbaFilePath(name string) string

AbaFilePath 返回 testdata/KCES 下样本 ABA 文件的路径 AbaFilePath returns the path to a sample ABA file under testdata/KCES

func AssetSamplePaths

func AssetSamplePaths(t TB) []string

AssetSamplePaths 返回 KCES 可编辑资产样本路径,包括 NEI、PSK、PNG 和原始 Unity 对象 AssetSamplePaths returns KCES editable asset sample paths including NEI, PSK, PNG, and raw Unity objects

func MiscSamplePaths

func MiscSamplePaths(t TB) []string

MiscSamplePaths 从已知数据 ABA 中提取 hitcheck、undressdat 和 undresspdat 样本 MiscSamplePaths extracts hitcheck, undressdat, and undresspdat samples from known data ABAs

func PartsSamplePaths

func PartsSamplePaths(t TB) []string

PartsSamplePaths 从已知部件 ABA 中提取 menuassets、materialassets、model 和 pmatassets 样本 menuassets 样本覆盖游戏中出现过的多种 Menu indexed-array 宽度,包括 21、22、26、30、31 和 32 PartsSamplePaths extracts menuassets, materialassets, model, and pmatassets samples from known parts ABAs The menuassets samples cover several Menu indexed-array widths seen in the game, including 21, 22, 26, 30, 31, and 32

func PayloadSamplePaths

func PayloadSamplePaths(t TB) []string

PayloadSamplePaths 从已知数据 ABA 中提取常用 KCES payload 样本 default_acckami_col.dbcol 覆盖 Key(13) 至 Key(15) 仍留有旧写入器残留值的 NativeMaidPropColliderStatus 布局 PayloadSamplePaths extracts common KCES payload samples from known data ABAs default_acckami_col.dbcol covers the NativeMaidPropColliderStatus layout that still holds earlier-writer residue at Key(13) through Key(15)

func RawObjectPath

func RawObjectPath(t TB, abaName string, assetName string, classID int32, outputName string) (string, string)

RawObjectPath 从 abaName 中提取原始 Unity 对象并写入 .bytes 文件及其 .meta.json 旁车 RawObjectPath extracts a raw Unity object from abaName and writes both the .bytes file and its .meta.json sidecar

func RawObjectSamplePaths

func RawObjectSamplePaths(t TB) []string

RawObjectSamplePaths 返回服务层原始 Unity 对象测试使用的 .bytes 样本路径 RawObjectSamplePaths returns .bytes sample paths used by the service-layer raw Unity object tests

func TextAssetBytes

func TextAssetBytes(t TB, abaName string, assetName string) []byte

TextAssetBytes 从 abaName 中提取名为 assetName 的 TextAsset TextAssetBytes extracts a TextAsset named assetName from abaName

func TextAssetPath

func TextAssetPath(t TB, abaName string, assetName string) string

TextAssetPath 将 TextAsset 样本写入临时文件并返回路径 TextAssetPath writes a TextAsset sample to a temporary file and returns its path

func TextAssetPathsBySuffix

func TextAssetPathsBySuffix(t TB, abaName string, suffix string) []string

TextAssetPathsBySuffix 从 abaName 中提取所有具有 suffix 后缀的 TextAsset TextAssetPathsBySuffix extracts every TextAsset with suffix from abaName

func TexturePNGPath

func TexturePNGPath(t TB, abaName string, textureName string, outputName string) string

TexturePNGPath 从 ABA 中提取指定 Texture2D 并写出 PNG 文件 TexturePNGPath extracts the selected Texture2D from an ABA and writes it as a PNG file

Types

type TB

type TB interface {
	// Helper 将当前调用函数标记为测试辅助函数
	// Helper marks the calling test function as a helper
	Helper()
	// TempDir 返回当前测试使用的临时目录
	// TempDir returns the temporary directory used by the current test
	TempDir() string
	// Fatalf 报告致命错误并停止当前测试
	// Fatalf reports a fatal error and stops the current test
	Fatalf(format string, args ...any)
	// Skipf 跳过当前测试并给出原因
	// Skipf skips the current test with a reason
	Skipf(format string, args ...any)
}

TB 表示夹具辅助函数使用的 testing.T 子集 / TB is the subset of testing.T used by fixture helpers

Jump to

Keyboard shortcuts

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