feat: add wooden fish play template

This commit is contained in:
2026-05-21 23:34:07 +08:00
parent ef09a23c35
commit 5b0f9f3763
121 changed files with 11580 additions and 159 deletions

View File

@@ -61,6 +61,7 @@ pub enum CreationAudioStoragePrefix {
PuzzleAssets,
#[serde(rename = "match3d_assets")]
Match3DAssets,
WoodenFishAssets,
CustomWorldScenes,
}
@@ -125,4 +126,20 @@ mod tests {
assert_eq!(payload["taskId"], json!("task-1"));
assert_eq!(payload["audioSrc"], json!("/generated-puzzle-assets/a.mp3"));
}
#[test]
fn creation_audio_contracts_support_wooden_fish_storage_prefix() {
let request = PublishGeneratedAudioAssetRequest {
entity_kind: "wooden_fish_work".to_string(),
entity_id: "wooden-fish-profile-1".to_string(),
slot: "hit_sound".to_string(),
asset_kind: "wooden_fish_hit_sound".to_string(),
profile_id: Some("wooden-fish-profile-1".to_string()),
storage_prefix: Some(CreationAudioStoragePrefix::WoodenFishAssets),
};
let payload = serde_json::to_value(request).expect("request should serialize");
assert_eq!(payload["storagePrefix"], json!("wooden_fish_assets"));
}
}