From a5006b5da0431699980c042eb8267f5950a976ab Mon Sep 17 00:00:00 2001 From: rewin Date: Thu, 22 Feb 2024 21:10:08 +0300 Subject: [PATCH] initial --- studio/src/ui/inspector.rs | 9 +++++++++ studio/src/ui/mod.rs | 1 + studio/src/wasm/conv.rs | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 studio/src/ui/inspector.rs diff --git a/studio/src/ui/inspector.rs b/studio/src/ui/inspector.rs new file mode 100644 index 0000000..74a60c6 --- /dev/null +++ b/studio/src/ui/inspector.rs @@ -0,0 +1,9 @@ +use bevy::prelude::*; + +pub struct InspectorPlugin; + +impl Plugin for InspectorPlugin { + fn build(&self, app: &mut App) { + + } +} \ No newline at end of file diff --git a/studio/src/ui/mod.rs b/studio/src/ui/mod.rs index 227e76b..b712713 100644 --- a/studio/src/ui/mod.rs +++ b/studio/src/ui/mod.rs @@ -3,6 +3,7 @@ use bevy::prelude::*; use self::fps::FpsCounterPlugin; mod fps; +pub mod inspector; pub struct UiLayerPlugin; diff --git a/studio/src/wasm/conv.rs b/studio/src/wasm/conv.rs index e7587dd..e2ae1db 100644 --- a/studio/src/wasm/conv.rs +++ b/studio/src/wasm/conv.rs @@ -22,6 +22,29 @@ export interface ITransform { } export type Transform = BevyObject<"Transform", ITransform>; export type GlobalTransform = BevyObject<"GlobalTransform", ITransform>; + +export enum MeshPrimitivePrefabType { + Cube, + Plane, + Sphere, + Capsule, + Torus, + Icosphere, +} + +export type MeshPrimitivePrefab = BevyObject<"MeshPrimitivePrefab", MeshPrimitivePrefabType>; + +export type Color = [number, number, number, number]; + +export type BaseColor = BevyObject<"BaseColor", Color>; + +export interface IStandartMaterial { + baseColor: BaseColor; +} + +expoort type Material = BevyObject<"StandartMaterial", IMaterial>; + + "#; pub(crate) const SERIALIZER: Serializer = Serializer::new()