amethyst / amethyst/editor-core

Identify read-only components to the editor

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

描述

> This ticket is blocked until #26 and #27 are complete.

As defined in #26 and #27, we support syncing Components/Resources that only implement `Serialize`, but in a read-only fashion that can't accept edits from the editor. In order to allow editors to provide a better user-experience for read-only components, we should provide information to the editor about which types have edit support vs which ones are read-only.

Ideally, it would be best to provide this sort of metadata once when the connection is established, however we don't currently have any sense of a "connection" between the game and editor. As such, there's no reasonable way to ensure that the game will know to send the information to the editor when the editor first connects. For simplicity, then, we should send this information with every state update that the game sends out.

We should update the `SerializedComponent` and `SerializedResource` structs to include some indication of whether or not the types supports editing. A boolean `read_only` field would be sufficient, but it might be nicer to have an `EditMode` enum that has variants for `ReadOnly` and `ReadWrite`. The approach to take is up to whomever takes on this task.

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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