2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-27 12:31:50 +00:00

chore: add ExtendAndDereference system test

This commit is contained in:
Jan Laupetin
2025-12-23 21:09:11 +01:00
parent a29180433b
commit e33ff303e6
7 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
>game,T6
techniqueset,trivial_floatz_2992w610
material,test

View File

@@ -0,0 +1,9 @@
# Extend and dereference system test
This makes sure that when reusing assets from an existing zone, asset dependencies that are references can be overwritten to be non-references.
In this case:
- The zone `ZoneWithTechsetT6` contains the techniqueset `trivial_floatz_2992w610`
- The zone `ZoneWithMaterialT6` contains the material `test` and with a reference to its techniqueset `,trivial_floatz_2992w610`
- The final zone `CombinedZoneT6` is built while loading both of the other fastfile and is expected to contain both the material `test` with a reference to a (actual asset, not a reference) techniqueset `trivial_floatz_2992w610`

View File

@@ -0,0 +1,4 @@
>game,T6
ignore,ZoneWithTechsetT6
material,test

View File

@@ -0,0 +1,3 @@
>game,T6
techniqueset,trivial_floatz_2992w610

View File

@@ -0,0 +1,77 @@
{
"$schema": "http://openassettools.dev/schema/material.v1.json",
"_game": "t6",
"_type": "material",
"_version": 1,
"cameraRegion": "none",
"constants": [],
"contents": 1,
"gameFlags": [],
"layeredSurfaceTypes": 536870912,
"sortKey": 4,
"stateBits": [
{
"alphaTest": "disabled",
"blendOpAlpha": "disabled",
"blendOpRgb": "disabled",
"colorWriteAlpha": true,
"colorWriteRgb": true,
"cullFace": "back",
"depthTest": "disabled",
"depthWrite": false,
"dstBlendAlpha": "zero",
"dstBlendRgb": "zero",
"polygonOffset": "offset0",
"polymodeLine": false,
"srcBlendAlpha": "one",
"srcBlendRgb": "one"
}
],
"stateBitsEntry": [
-1,
-1,
0,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1
],
"stateFlags": 0,
"surfaceFlags": 0,
"surfaceTypeBits": 0,
"techniqueSet": "trivial_floatz_2992w610",
"textureAtlas": {
"columns": 1,
"rows": 1
},
"textures": []
}