Skip to content

Commit 3b5e0a0

Browse files
committed
First dmx pass
1 parent 069b280 commit 3b5e0a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+15985
-26
lines changed

PLAN.md

Lines changed: 456 additions & 0 deletions
Large diffs are not rendered by default.

ValveKeyValue/ValveKeyValue.Test/BinaryKV2/KV2BinaryReaderTestCase.cs

Lines changed: 430 additions & 0 deletions
Large diffs are not rendered by default.
135 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<!-- dmx encoding keyvalues2 1 format dmx 1 -->
2+
// This file tests all DMX scalar and array types
3+
"DmElement"
4+
{
5+
"id" "elementid" "10000000-0000-0000-0000-000000000001"
6+
"name" "string" "all_types_root"
7+
"intVal" "int" "42"
8+
"floatVal" "float" "3.14"
9+
"boolTrue" "bool" "1"
10+
"boolFalse" "bool" "0"
11+
"stringVal" "string" "hello"
12+
"emptyString" "string" ""
13+
"binaryVal" "binary" "DEADBEEF"
14+
"timeVal" "time" "12345"
15+
"colorVal" "color" "255 128 0 200"
16+
"vec2Val" "vector2" "1.5 2.5"
17+
"vec3Val" "vector3" "1 2 3"
18+
"vec4Val" "vector4" "1 2 3 4"
19+
"qangleVal" "qangle" "10 20 30"
20+
"quatVal" "quaternion" "0.1 0.2 0.3 0.9"
21+
"matrixVal" "matrix" "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"
22+
"uint8Val" "uint8" "255"
23+
"uint64Val" "uint64" "18446744073709551615"
24+
"intArray" "int_array"
25+
[
26+
"10",
27+
"20",
28+
"30"
29+
]
30+
"floatArray" "float_array"
31+
[
32+
"1.5",
33+
"2.5"
34+
]
35+
"boolArray" "bool_array"
36+
[
37+
"1",
38+
"0",
39+
"1"
40+
]
41+
"stringArray" "string_array"
42+
[
43+
"alpha",
44+
"beta"
45+
]
46+
"emptyIntArray" "int_array"
47+
[
48+
]
49+
"emptyStringArray" "string_array"
50+
[
51+
]
52+
"singleElementArray" "int_array"
53+
[
54+
"42"
55+
]
56+
"vec3Array" "vector3_array"
57+
[
58+
"1 2 3",
59+
"4 5 6"
60+
]
61+
"colorArray" "color_array"
62+
[
63+
"255 0 0 255",
64+
"0 255 0 128"
65+
]
66+
"timeArray" "time_array"
67+
[
68+
"100",
69+
"200"
70+
]
71+
"nullRef" "element" ""
72+
"inlineChild" "DmeChild"
73+
{
74+
"id" "elementid" "20000000-0000-0000-0000-000000000001"
75+
"name" "string" "child"
76+
"value" "int" "99"
77+
"nested" "DmeNested"
78+
{
79+
"id" "elementid" "20000000-0000-0000-0000-000000000002"
80+
"name" "string" "nested_child"
81+
"deep" "int" "7"
82+
}
83+
}
84+
"emptyElementArray" "element_array"
85+
[
86+
]
87+
"mixedElementArray" "element_array"
88+
[
89+
"element" "",
90+
"DmeItem"
91+
{
92+
"id" "elementid" "30000000-0000-0000-0000-000000000001"
93+
"name" "string" "array_item"
94+
"score" "int" "100"
95+
},
96+
"element" ""
97+
]
98+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!-- dmx encoding keyvalues2 1 format dmx 1 -->
2+
"DmElement"
3+
{
4+
"id" "elementid" "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
5+
"name" "string" "root"
6+
"intVal" "int" "42"
7+
"floatVal" "float" "3.14"
8+
"boolVal" "bool" "1"
9+
"stringVal" "string" "hello world"
10+
"color" "color" "255 128 0 255"
11+
"position" "vector3" "1.5 2.5 3.5"
12+
"angles" "qangle" "10 20 30"
13+
"rotation" "quaternion" "0 0 0 1"
14+
"uv" "vector2" "0.5 0.75"
15+
"vec4" "vector4" "1 2 3 4"
16+
"time" "time" "100"
17+
"child" "DmeChild"
18+
{
19+
"id" "elementid" "11111111-2222-3333-4444-555555555555"
20+
"name" "string" "child1"
21+
"value" "int" "99"
22+
}
23+
"nullRef" "element" ""
24+
"intArray" "int_array"
25+
[
26+
"1",
27+
"2",
28+
"3"
29+
]
30+
"stringArray" "string_array"
31+
[
32+
"alpha",
33+
"beta",
34+
"gamma"
35+
]
36+
"elements" "element_array"
37+
[
38+
"DmeItem"
39+
{
40+
"id" "elementid" "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
41+
"name" "string" "item1"
42+
},
43+
"DmeItem"
44+
{
45+
"id" "elementid" "ffffffff-0000-1111-2222-333333333333"
46+
"name" "string" "item2"
47+
}
48+
]
49+
}

0 commit comments

Comments
 (0)