feat: add wooden fish play template
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user