Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6107: Add an example layer hierarchy in mapx and map formats to test…
… the restore code
- Loading branch information
1 parent
1fd7312
commit 08e5830
Showing
4 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
test/resources/tdm/maps/layer_hierarchy_restore.darkradiant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
DarkRadiant Map Information File Version 2 | ||
{ | ||
MapProperties | ||
{ | ||
KeyValue { "EditTimeInSeconds" "34" } | ||
KeyValue { "LastCameraAngle" "0 0 0" } | ||
KeyValue { "LastCameraPosition" "0 0 30" } | ||
} | ||
MapEditTimings | ||
{ | ||
TotalSecondsEdited { 34 } | ||
} | ||
Layers | ||
{ | ||
Layer 0 { Default } | ||
Layer 1 { box } | ||
Layer 2 { BoardsandStuff } | ||
Layer 3 { Tst } | ||
Layer 4 { Test2 } | ||
Layer 5 { Test3 } | ||
Layer 6 { Test4 } | ||
Layer 7 { Test6 } | ||
Layer 8 { Test7 } | ||
Layer 9 { Test8 } | ||
} | ||
LayerHierarchy | ||
{ | ||
Layer 0 Parent { -1 } | ||
Layer 1 Parent { -1 } | ||
Layer 2 Parent { -1 } | ||
Layer 3 Parent { 9 } | ||
Layer 4 Parent { 2 } | ||
Layer 5 Parent { 3 } | ||
Layer 6 Parent { 3 } | ||
Layer 7 Parent { 3 } | ||
Layer 8 Parent { 4 } | ||
Layer 9 Parent { 2 } | ||
} | ||
NodeToLayerMapping | ||
{ | ||
Node { 0 } // entity (world) | ||
Node { 0 } // brush (Brush) | ||
} | ||
SelectionSets | ||
{ | ||
} | ||
SelectionGroups | ||
{ | ||
} | ||
SelectionGroupNodeMapping | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Version 2 | ||
// entity 0 | ||
{ | ||
"classname" "worldspawn" | ||
// primitive 0 | ||
{ | ||
brushDef3 | ||
{ | ||
( 0 0 1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
( 0 1 0 -84 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
( 1 0 0 -177 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
( 0 0 -1 -64 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
( 0 -1 0 24 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
( -1 0 0 96 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "_default" 0 0 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<map version="1" format="portable"> | ||
<layers> | ||
<layer id="0" name="Default" parentId="-1"/> | ||
<layer id="1" name="box" parentId="-1"/> | ||
<layer id="2" name="BoardsandStuff" parentId="-1"/> | ||
<layer id="3" name="Tst" parentId="9"/> | ||
<layer id="4" name="Test2" parentId="2"/> | ||
<layer id="5" name="Test3" parentId="3"/> | ||
<layer id="6" name="Test4" parentId="3"/> | ||
<layer id="7" name="Test6" parentId="3"/> | ||
<layer id="8" name="Test7" parentId="4"/> | ||
<layer id="9" name="Test8" parentId="2"/> | ||
</layers> | ||
<selectionGroups/> | ||
<selectionSets/> | ||
<properties> | ||
<property key="EditTimeInSeconds" value="752"/> | ||
<property key="LastCameraAngle" value="0 0 0"/> | ||
<property key="LastCameraPosition" value="0 0 30"/> | ||
</properties> | ||
<entity number="0"> | ||
<primitives> | ||
<brush number="0"> | ||
<faces> | ||
<face> | ||
<plane x="0" y="0" z="1.000000" d="-64.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
<face> | ||
<plane x="0" y="1.000000" z="0" d="-84.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
<face> | ||
<plane x="1.000000" y="0" z="0" d="-177.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
<face> | ||
<plane x="0" y="0" z="-1.000000" d="-64.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
<face> | ||
<plane x="0" y="-1.000000" z="0" d="24.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
<face> | ||
<plane x="-1.000000" y="0" z="0" d="96.000000"/> | ||
<textureProjection xx="0.031250" yx="0" tx="0" xy="0" yy="0.031250" ty="0"/> | ||
<material name=""/> | ||
<contentsFlag value="0"/> | ||
</face> | ||
</faces> | ||
<layers> | ||
<layer id="0"/> | ||
</layers> | ||
<selectionGroups/> | ||
<selectionSets/> | ||
</brush> | ||
</primitives> | ||
<keyValues> | ||
<keyValue key="classname" value="worldspawn"/> | ||
</keyValues> | ||
<layers> | ||
<layer id="0"/> | ||
</layers> | ||
<selectionGroups/> | ||
<selectionSets/> | ||
</entity> | ||
</map> |