mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 00:23:14 +00:00
initial
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
pub struct InspectorPlugin;
|
||||
|
||||
impl Plugin for InspectorPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ use bevy::prelude::*;
|
||||
use self::fps::FpsCounterPlugin;
|
||||
|
||||
mod fps;
|
||||
pub mod inspector;
|
||||
|
||||
pub struct UiLayerPlugin;
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user