amethyst / amethyst/editor-core

Use UUIDs to identify types

Aperta
#30 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
45
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.