archetype_ecs 1.1.6

Archetype ECS - High-performance Entity Component System with parallel execution
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Quick test to isolate the add_component issue
#[test]
fn test_add_component_simple() {
    let mut world = World::new();
    let entity = world.spawn((LocalTransform::identity(),)).unwrap();

    // This should work - adding a new component
    let result = world.add_component(entity, Parent::new(entity));
    assert!(result.is_ok(), "add_component failed: {:?}", result.err());

    assert!(world.has_component::<Parent>(entity));
}