Add a test

This commit is contained in:
Zykino
2022-09-18 01:29:21 +02:00
parent c4becb0b12
commit 3ee0a9aee0
4 changed files with 77 additions and 1 deletions

20
examples/materials.json Normal file
View File

@ -0,0 +1,20 @@
{
"materials": {
"metal": {
"reflectivity": 1.0
},
"plastic": {
"reflectivity": 0.5
}
},
"entities": [
{
"name": "hero",
"material": "metal"
},
{
"name": "monster",
"material": "plastic"
}
]
}

20
examples/materials.ron Normal file
View File

@ -0,0 +1,20 @@
Scene( // class name is optional
materials: { // this is a map
"metal": (
reflectivity: 1.0,
),
"plastic": (
reflectivity: 0.5,
),
},
entities: [ // this is an array
(
name: "hero",
material: "metal",
),
(
name: "monster",
material: "plastic",
),
],
)