mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
70ad6671db
ecs: use generational entity ids and other optimizations
32 lines
No EOL
434 B
Text
32 lines
No EOL
434 B
Text
[
|
|
(
|
|
entity: 0,
|
|
components: [
|
|
{
|
|
"type": "ComponentB",
|
|
"map": {
|
|
"value": "hello",
|
|
},
|
|
},
|
|
{
|
|
"type": "ComponentA",
|
|
"map": {
|
|
"x": 1.0,
|
|
"y": 2.0,
|
|
},
|
|
},
|
|
],
|
|
),
|
|
(
|
|
entity: 1,
|
|
components: [
|
|
{
|
|
"type": "ComponentA",
|
|
"map": {
|
|
"x": 3.0,
|
|
"y": 4.0,
|
|
},
|
|
},
|
|
],
|
|
),
|
|
] |