- --
```rust
use crate::entity::*;
use crate::components::*;
// 엔티티 생성
let entity_id = EntityId::new(1);
let mut entity = Entity::new(entity_id);
// 컴포넌트 추가
entity.add_component(Transform::new(0.0, 0.0));
entity.add_component(Sprite::new("player.png"));
// 컴포넌트 조회
if let Some(transform) = entity.get_component::<Transform>() {
}
```