From 4cf75a1bebf817b9ca830ce0bf1cc3f87080d268 Mon Sep 17 00:00:00 2001 From: klingbolt Date: Mon, 13 Nov 2023 22:01:13 -0500 Subject: [PATCH] Tests for Fade Near and Far --- xml_converter/doc/fade/distance_fade_end.md | 2 +- .../expected_outputs/proto_fade/markers.bin | Bin 0 -> 255 bytes .../expected_outputs/xml_fade/xml_file.xml | 18 +++++++++++++++++ .../inputs/xml_fade/xml_file.xml | 19 ++++++++++++++++++ xml_converter/intigration_tests/testcases.py | 6 ++++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 xml_converter/intigration_tests/expected_outputs/proto_fade/markers.bin create mode 100644 xml_converter/intigration_tests/expected_outputs/xml_fade/xml_file.xml create mode 100644 xml_converter/intigration_tests/inputs/xml_fade/xml_file.xml diff --git a/xml_converter/doc/fade/distance_fade_end.md b/xml_converter/doc/fade/distance_fade_end.md index fcd1fbaf..4a40019b 100644 --- a/xml_converter/doc/fade/distance_fade_end.md +++ b/xml_converter/doc/fade/distance_fade_end.md @@ -5,7 +5,7 @@ applies_to: [Icon, Trail] xml_fields: [FadeFar, DistanceFadeEnd] protobuf_field: distance_fade_end --- -Any part of the object that is farther then this value will be at. +Any part of the object that is farther then this value will be at 0 alpha. Notes ===== diff --git a/xml_converter/intigration_tests/expected_outputs/proto_fade/markers.bin b/xml_converter/intigration_tests/expected_outputs/proto_fade/markers.bin new file mode 100644 index 0000000000000000000000000000000000000000..68ae59c38b05ed84d8f3f6628ed87c2e1c12a750 GIT binary patch literal 255 zcmd=3!^p+$TdCljSdyBaUsNe2pSNFxquVFe>hBS8+tZW>4it22~X!8(+<5N?4A0RSW0 BROSEx literal 0 HcmV?d00001 diff --git a/xml_converter/intigration_tests/expected_outputs/xml_fade/xml_file.xml b/xml_converter/intigration_tests/expected_outputs/xml_fade/xml_file.xml new file mode 100644 index 00000000..863d890d --- /dev/null +++ b/xml_converter/intigration_tests/expected_outputs/xml_fade/xml_file.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/xml_converter/intigration_tests/inputs/xml_fade/xml_file.xml b/xml_converter/intigration_tests/inputs/xml_fade/xml_file.xml new file mode 100644 index 00000000..c6a9611a --- /dev/null +++ b/xml_converter/intigration_tests/inputs/xml_fade/xml_file.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/xml_converter/intigration_tests/testcases.py b/xml_converter/intigration_tests/testcases.py index 4b44e0f0..1a16132a 100644 --- a/xml_converter/intigration_tests/testcases.py +++ b/xml_converter/intigration_tests/testcases.py @@ -84,4 +84,10 @@ class Testcase: expected_output_xml_path="./expected_outputs/xml_is_wall", expected_output_proto_path="./expected_outputs/proto_is_wall", ), + Testcase( + name="fade", + xml_input_paths=["./inputs/xml_fade"], + expected_output_xml_path="./expected_outputs/xml_fade", + expected_output_proto_path="./expected_outputs/proto_fade", + ), ]