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

Function default_panimtree

perro_source/devtools/perro_cli/src/scaffold.rs:523–545  ·  view source on GitHub ↗
(tree_name: &str)

Source from the content-addressed store, hash-verified

521}
522
523fn default_panimtree(tree_name: &str) -> String {
524 r#"[AnimationTree]
525name = "__TREE_NAME__"
526[/AnimationTree]
527
528[AnimationSlots]
529Idle
530Run
531[/AnimationSlots]
532
533[MoveBlend]
534 [Blend]
535 inputs = [@Idle, @Run]
536 weights = [1.0, 0.0]
537 [/Blend]
538[/MoveBlend]
539
540[Output]
541 input = @MoveBlend
542[/Output]
543"#
544 .replace("__TREE_NAME__", tree_name)
545}
546
547pub(crate) fn new_animation_command(args: &[String], cwd: &Path) -> Result<(), String> {
548 let Some(raw_name) = parse_flag_value(args, "--name") else {

Callers 1

new_panimtree_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected