This commit is contained in:
1 parent
19c4d017dc
commit
2fa64106c8
12 files changed
+747
-174
No files matched your search
@@ -5,9 +5,11 @@ use egui_phosphor_icons::icons;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum EditorComponentCategory {
|
||||
Authoring,
|
||||
Rendering,
|
||||
Physics,
|
||||
Gameplay,
|
||||
Volumes,
|
||||
Editor,
|
||||
}
|
||||
|
||||
@@ -19,8 +21,13 @@ pub struct EditorComponentDescriptor {
|
||||
pub addable: bool,
|
||||
pub removable: bool,
|
||||
pub reorderable: bool,
|
||||
pub hidden: bool,
|
||||
pub icon: &'static str,
|
||||
pub description: &'static str,
|
||||
pub search_terms: &'static [&'static str],
|
||||
pub recommended: &'static [&'static str],
|
||||
pub conflicts_with: &'static [&'static str],
|
||||
pub hydration_effect: &'static str,
|
||||
}
|
||||
|
||||
#[derive(Resource, Debug, Clone)]
|
||||
@@ -39,8 +46,14 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::CUBE.as_str(),
|
||||
search_terms: &["mesh", "renderer", "rendering", "model"],
|
||||
description: "Renders one or more normalized imported mesh slots.",
|
||||
search_terms: &["mesh", "renderer", "rendering", "model", "static"],
|
||||
recommended: &[],
|
||||
conflicts_with: &["shared::components::Primitive"],
|
||||
hydration_effect:
|
||||
"Hydrates into generated mesh children and material bindings.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::MaterialDesc",
|
||||
@@ -49,8 +62,13 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::PALETTE.as_str(),
|
||||
description: "Defines an authored material directly on this actor.",
|
||||
search_terms: &["material", "shader", "texture"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into Bevy material assets for renderable actors.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::RigidBodyDesc",
|
||||
@@ -59,8 +77,13 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::SPHERE.as_str(),
|
||||
description: "Controls authored rigid-body behavior for physics hydration.",
|
||||
search_terms: &["body", "physics", "rigidbody"],
|
||||
recommended: &["shared::components::ColliderDesc"],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into runtime Avian rigid-body state.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::ColliderDesc",
|
||||
@@ -69,8 +92,13 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::SELECTION.as_str(),
|
||||
description: "Defines authored collision shape data.",
|
||||
search_terms: &["collision", "trigger", "physics"],
|
||||
recommended: &["shared::components::RigidBodyDesc"],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into runtime Avian collider state.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::LightDesc",
|
||||
@@ -79,18 +107,29 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::LIGHTBULB.as_str(),
|
||||
search_terms: &["light", "lamp", "illumination"],
|
||||
description: "Adds authored point, spot, directional, or area lighting.",
|
||||
search_terms: &["light", "lamp", "illumination", "sun"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into runtime Bevy light components.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::Primitive",
|
||||
display_name: "Primitive",
|
||||
category: EditorComponentCategory::Rendering,
|
||||
category: EditorComponentCategory::Authoring,
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::CUBE.as_str(),
|
||||
description: "Creates an authored built-in primitive shape.",
|
||||
search_terms: &["box", "sphere", "ramp", "primitive"],
|
||||
recommended: &[],
|
||||
conflicts_with: &["shared::components::StaticMeshRenderer"],
|
||||
hydration_effect:
|
||||
"Hydrates into generated primitive render and collision data.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::PlayerSpawn",
|
||||
@@ -99,8 +138,14 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::PERSON_SIMPLE_RUN.as_str(),
|
||||
description: "Marks where Play mode should spawn the player.",
|
||||
search_terms: &["player", "spawn", "start"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect:
|
||||
"Used by PIE/session startup; no saved runtime player is created.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::WeaponSpawn",
|
||||
@@ -109,18 +154,28 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::CROSSHAIR.as_str(),
|
||||
description: "Marks a gameplay weapon spawn point.",
|
||||
search_terms: &["weapon", "spawn"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into gameplay spawn metadata.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::TriggerVolume",
|
||||
display_name: "Trigger Volume",
|
||||
category: EditorComponentCategory::Gameplay,
|
||||
category: EditorComponentCategory::Volumes,
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::SELECTION.as_str(),
|
||||
description: "Adds an authored gameplay trigger volume.",
|
||||
search_terms: &["trigger", "volume", "event"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into gameplay trigger queries and visualizers.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::TeamSpawn",
|
||||
@@ -129,8 +184,13 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::FLAG.as_str(),
|
||||
description: "Marks a gameplay team spawn point.",
|
||||
search_terms: &["team", "spawn"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into gameplay spawn metadata.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::ObjectiveMarker",
|
||||
@@ -139,8 +199,29 @@ impl Default for EditorComponentRegistry {
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::FLAG.as_str(),
|
||||
description: "Marks an authored gameplay objective location.",
|
||||
search_terms: &["objective", "marker", "gameplay"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect: "Hydrates into gameplay objective metadata.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::PostProcessVolumeDesc",
|
||||
display_name: "Post-Process Volume",
|
||||
category: EditorComponentCategory::Volumes,
|
||||
addable: true,
|
||||
removable: true,
|
||||
reorderable: true,
|
||||
hidden: false,
|
||||
icon: icons::APERTURE.as_str(),
|
||||
description: "Adds a local rendering profile override volume.",
|
||||
search_terms: &["post", "process", "volume", "rendering", "fx"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect:
|
||||
"Affects active camera rendering when the camera is inside the volume.",
|
||||
},
|
||||
EditorComponentDescriptor {
|
||||
type_name: "shared::components::InspectorOrder",
|
||||
@@ -149,8 +230,14 @@ impl Default for EditorComponentRegistry {
|
||||
addable: false,
|
||||
removable: false,
|
||||
reorderable: false,
|
||||
hidden: true,
|
||||
icon: icons::LIST_BULLETS.as_str(),
|
||||
description: "Stores editor-only component ordering and active-state metadata.",
|
||||
search_terms: &["editor", "order"],
|
||||
recommended: &[],
|
||||
conflicts_with: &[],
|
||||
hydration_effect:
|
||||
"Controls editor presentation and authoring component active state.",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user