This commit is contained in:
2026-05-28 18:00:10 +08:00
parent 7201bf9845
commit a1d3fde774
6 changed files with 69 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ func TestExportPlayworksNetworksForRuntimeCheck(t *testing.T) {
t.Skip("PLAYWORKS_EXPORT_DIR not set")
}
sourcePath := filepath.Join("..", "aiAssets", "Playworks_UnityNetwork.html")
sourcePath := filepath.Join("..", "aiAssets", "DogCat3_Full.html")
data, err := os.ReadFile(sourcePath)
if err != nil {
t.Fatalf("read source: %v", err)
@@ -24,7 +24,11 @@ func TestExportPlayworksNetworksForRuntimeCheck(t *testing.T) {
BaseName: "wat_mip_grhpl_dogcat3_05_real_na_noseason_en_full_na",
}
for _, network := range []string{"al", "fb", "gg", "is", "mo", "mtg", "un", "vu"} {
if _, err := copyPlayworksUnityInput(data, opts); err != nil {
t.Fatalf("copy unity input: %v", err)
}
for _, network := range []string{"al", "ap", "fb", "gg", "is", "mo", "mtg", "vu"} {
if _, err := convertPlayworksNetwork(string(data), opts, network); err != nil {
t.Fatalf("convert %s: %v", network, err)
}