amethyst / amethyst/editor-core

Use UUIDs to identify types

未关闭
#30 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Rust
星标
45
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

Right now we use the user-provided names for Resources/Components to identify them when deserializing update data sent from the editor. While this is an *okay* solution in the short term, we'll need a more stable way of identifying types in order to support prefab editing in the future. To do this, we can use [serde-dyn](https://crates.io/crates/serde_dyn), which provides the trait [`TypeUuid`](https://docs.rs/serde_dyn/0.1.0/serde_dyn/trait.TypeUuid.html).

> TODO: Note that we'll have to define our own `TypeUuid` trait because of the orphan rule.

> TODO: Note that we should put this behind a feature until we're ready to make it mandatory.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。