MCPcopy Create free account
hub / github.com/PerroEngine/Perro / default_scene_3d

Function default_scene_3d

perro_source/devtools/perro_cli/src/scaffold.rs:424–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

422}
423
424fn default_scene_3d() -> String {
425 r#"$root = @main
426
427[main]
428
429[Node3D]
430 position = (0, 0, 0)
431[/Node3D]
432[/main]
433
434[camera]
435parent = $root
436
437[Camera3D]
438 active = true
439 [Node3D]
440 position = (0, 0, 8)
441 [/Node3D]
442[/Camera3D]
443[/camera]
444
445[ambient]
446parent = $root
447
448[AmbientLight3D]
449 color = (1.0, 1.0, 1.0)
450 intensity = 0.8
451[/AmbientLight3D]
452[/ambient]
453"#
454 .to_string()
455}
456
457pub(crate) fn new_scene_command(args: &[String], cwd: &Path) -> Result<(), String> {
458 let Some(raw_name) = parse_flag_value(args, "--name") else {

Callers 1

new_scene_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected