michalbe / michalbe/cervus

Implement `Entity.clone`

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
27
Forks
4
PR merge metrics
PR metrics pending

Description

Keep in mind that each component keeps a reference to an Entity it's assigned to, and this Entity has map of components, so standard `deepCloning` won't work here.

Related issues:
- https://github.com/michalbe/cervus/issues/95

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for the Entity implementation and its component references; no file or test is named in the issue. Start by tracing how components point back to their Entity and how the Entity stores its component map. Done means Entity.clone handles those references without relying on standard deep cloning, while addressing the related issue if its scope is relevant.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.