Inspector: component view part (#55)

This PR allow to send entity components data to typescript with
inspector-dom event

Event data

![image](https://github.com/storytold/storyteller-bevy/assets/10954133/f4b5a88e-0a8d-4d56-ade2-d0102a6c08f7)

Component register example

![image](https://github.com/storytold/storyteller-bevy/assets/10954133/f9480f0a-a657-4445-a0d4-0984e2f69900)

Read event example

![image](https://github.com/storytold/storyteller-bevy/assets/10954133/2b6480f0-d1fb-42f1-bd6e-dfbc3d4676a2)


This PR is the first step of new inspector backend logic
Next parts is:
- Allow to edit components fields 
- Allow to show asset data (like show Handle<StandartMaterial> data)
- Allow to edit asset fields
This commit is contained in:
rewin
2024-02-29 23:17:51 +03:00
committed by GitHub
parent f31cf35da1
commit ae88696213
6 changed files with 233 additions and 2 deletions
+2
View File
@@ -22,6 +22,8 @@ export interface ITransform {
}
export type Transform = BevyObject<"Transform", ITransform>;
export type GlobalTransform = BevyObject<"GlobalTransform", ITransform>;
"#;
pub(crate) const SERIALIZER: Serializer = Serializer::new()