UUIDCollisionResolver
まだ誰も着手していません。
評価
調査の方向性
まず、リンクされた entityx の issue とここで説明されているシリアライズの制約を読み、その後 entities_for_debugging() と UUIDGenerator を調べてください。デシリアライズされた UUID の衝突解決動作を定義し、Transform などのコンポーネントに格納された参照も含め、完了をどのように検証するかを文書化してください。
索引モデルが issue の本文から書いたものです。
説明
I'm trying to integrate cereal serialization library with entityx
Also I have read https://github.com/alecthomas/entityx/issues/117, https://github.com/alecthomas/entityx/issues/14 and https://github.com/alecthomas/entityx/issues/25
I got four basic ideas:
- We should use custom UUID component instead of Entity id
- For serialization we should check manually if entity has specific components (and, well, iterate through all of them)
- (because of 2) We should manually decide what components should be registered and how components should be serialized/deserialized
- To iterate over all alive entities we must use entities_for_debugging(). It marked "not very fast, so should only be used for debugging", but well I don't see any other alternatives for serialization
My big question is: how elegantly implement UUIDCollisionResolver? I mean, UUIDGenerator automatically attaches UUID component for every new Entity, and when we try to deserialize some entities from external file here is high probability that UUIDs of that entities are already taken
Also, some components can store UUID in themselves, so UUID must be replaced with a correct one too
To be more specific, lets say we have such components:
struct UUID
{
//UUID(...) {...}
uint32_t value;
};
struct TreeNode
{
//TreeNode(...) {...}
std::string name;
};
struct Transform
{
//Transform(...) {...}
glm::vec3 position;
glm::vec3 scale;
glm::vec3 rotation;
bool is_dirty;
glm::mat4 cache;
UUID parent;
std::list<UUID> childs;
};
- 主要言語
- C++
- スター
- 2.3k
- フォーク
- 300
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
alecthomas/entityx のほかの issue
-
Test Failsオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
alecthomas/entityx#256 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 32/100
alecthomas/entityx#246 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
alecthomas/entityx#238 · コメント 11 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
alecthomas/entityx#237 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
alecthomas/entityx#224 ·
alecthomas/entityx の issue をすべて見る
似ている issue
-
agent:Windows bug parity performance pri:medium sev:low tooling windows
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ai_p2
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ClickHouse/ClickHouse#132519 ·
メンテナーはふだん 1 日以内に返信
-
patch_advisor_json_integration fails when the build tree is reached through a symbolic link対応中かも @DerKarussellbremser が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
boykopovar/AnyPS5#22581 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BlueQuartzSoftware/simplnx#1987 ·
メンテナーはふだん 6 日以内に返信