-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing the category key when loading proto files #332
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" Name="mycategory"></MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="Nested Level One" Name="NestedLevel1"> | ||
<MarkerCategory DisplayName="Nested Level Two" Name="NestedLevel2"> | ||
<MarkerCategory DisplayName="Nested Level Three" Name="NestedLevel3"></MarkerCategory> | ||
</MarkerCategory> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="nestedlevel1" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="nestedlevel1.nestedlevel2" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="nestedlevel1.nestedlevel2.nestedlevel3" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
</POIs> | ||
</OverlayData> |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/display_name_valid/output_proto/markers.bin.textproto._old 2024-08-18 21:26:25.288712905 +0000
+++ xml_converter/integration_tests/test_cases/display_name_valid/output_proto/markers.bin.textproto._new 2024-08-18 21:26:25.296712852 +0000
@@ -0,0 +1,48 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "Nested Level One"
+ children {
+ name: "Nested Level Two"
+ children {
+ name: "Nested Level Three"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "p,T\324\205\337\210\244"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "\270\232\334\270\267xj\317"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: ",\222\247\355j@\016:"
+}
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="Nested Level One" ID="LJKn7WpADjo=" Name="NestedLevel1"> | ||
<MarkerCategory DisplayName="Nested Level Two" ID="uJrcuLd4as8=" Name="NestedLevel2"> | ||
<MarkerCategory DisplayName="Nested Level Three" ID="cCxU1IXfiKQ=" Name="NestedLevel3"> | ||
</MarkerCategory> | ||
</MarkerCategory> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevel1" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevel1.nestedlevel2" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevel1.nestedlevel2.nestedlevel3" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
</POIs> | ||
</OverlayData> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
input_paths: | ||
"pack": "xml" | ||
expected_stdout: | | ||
expected_stderr: | | ||
expected_returncode: 0 |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_type_valid/input/pack/markers.bin.textproto._old 2024-08-18 04:11:07.076577796 +0000
+++ xml_converter/integration_tests/test_cases/proto_type_valid/input/pack/markers.bin.textproto._new 2024-08-18 04:11:07.084577829 +0000
@@ -0,0 +1,48 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "Nested Level One"
+ children {
+ name: "Nested Level Two"
+ children {
+ name: "Nested Level Three"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "p,T\324\205\337\210\244"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "\270\232\334\270\267xj\317"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: ",\222\247\355j@\016:"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_type_valid/input/pack/markers.bin.textproto._old 2024-08-18 21:26:25.304712800 +0000
+++ xml_converter/integration_tests/test_cases/proto_type_valid/input/pack/markers.bin.textproto._new 2024-08-18 21:26:25.312712750 +0000
@@ -0,0 +1,48 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "Nested Level One"
+ children {
+ name: "Nested Level Two"
+ children {
+ name: "Nested Level Three"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "p,T\324\205\337\210\244"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "\270\232\334\270\267xj\317"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: ",\222\247\355j@\016:"
+}
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_type_valid/output_proto/markers.bin.textproto._old 2024-08-18 04:11:07.092577861 +0000
+++ xml_converter/integration_tests/test_cases/proto_type_valid/output_proto/markers.bin.textproto._new 2024-08-18 04:11:07.100577892 +0000
@@ -0,0 +1,48 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "Nested Level One"
+ children {
+ name: "Nested Level Two"
+ children {
+ name: "Nested Level Three"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "p,T\324\205\337\210\244"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "\270\232\334\270\267xj\317"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: ",\222\247\355j@\016:"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_type_valid/output_proto/markers.bin.textproto._old 2024-08-18 21:26:25.320712697 +0000
+++ xml_converter/integration_tests/test_cases/proto_type_valid/output_proto/markers.bin.textproto._new 2024-08-18 21:26:25.328712645 +0000
@@ -0,0 +1,48 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "Nested Level One"
+ children {
+ name: "Nested Level Two"
+ children {
+ name: "Nested Level Three"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "p,T\324\205\337\210\244"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "\270\232\334\270\267xj\317"
+ }
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: ",\222\247\355j@\016:"
+}
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="Nested Level One" ID="LJKn7WpADjo=" Name="nestedlevelone"> | ||
<MarkerCategory DisplayName="Nested Level Two" ID="uJrcuLd4as8=" Name="nestedleveltwo"> | ||
<MarkerCategory DisplayName="Nested Level Three" ID="cCxU1IXfiKQ=" Name="nestedlevelthree"> | ||
</MarkerCategory> | ||
</MarkerCategory> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevelone" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevelone.nestedleveltwo" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="nestedlevelone.nestedleveltwo.nestedlevelthree" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
</POIs> | ||
</OverlayData> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
input_paths: | ||
"pack": "proto" | ||
expected_stdout: | | ||
expected_stderr: | | ||
expected_returncode: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff