BlueGit

golden-age paperdoll-renderer

Merge fix/equipment-status: packaged smoke capability correction

timfa Grok Bot · pushed by timfa

Authored 2026-11-06 · 7 days ago

Hash
a1ba6131ba82388f13d603b09d7bb17349a9854f
Pipeline
Passed
1 file changed +15 −15
src/foundation.rs +15 −15
@@ -1,7 +1,7 @@
1 //! Honest capability report for the foundation shell.
1 //! Honest capability report for the current editor.
2 2 //!
3 //! Later features add import, animation, rendering and preview. Until those
4 //! features land, this module must keep reporting them as not built.
3 //! Attachment authoring is present. Full production paperdoll export and the
4 //! rendered 2D compositor remain not built; a shaded still is not that batch.
5 5
6 6 /// Product capability named by the design.
7 7 #[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -63,10 +63,9 @@ pub fn availability(capability: Capability) -> Availability {
63 63 | Capability::ObjMtlTextures
64 64 | Capability::GltfGlb
65 65 | Capability::Fbx
66 | Capability::SkeletalAnimation => Availability::Present,
67 Capability::AttachmentEditor | Capability::PaperdollRender | Capability::Preview2d => {
68 Availability::NotBuilt
69 }
66 | Capability::SkeletalAnimation
67 | Capability::AttachmentEditor => Availability::Present,
68 Capability::PaperdollRender | Capability::Preview2d => Availability::NotBuilt,
70 69 }
71 70 }
72 71
@@ -111,7 +110,7 @@ pub fn dutch_state(availability: Availability) -> &'static str {
111 110 }
112 111
113 112 pub fn dutch_summary() -> &'static str {
114 "Deze build leest glTF/GLB, FBX en OBJ+MTL, opent een .ppd-project en toont een live geskinde 3D-preview van glTF/GLB met walk en attack."
113 "Deze build leest glTF/GLB, FBX en OBJ+MTL, opent een .ppd-project en toont een live geskinde 3D-preview van glTF/GLB met walk en attack, rigide bone-gebonden OBJ-equipment en binaire .ppe-presets. Render maakt een gekleurd body-stilbeeld, geen productie-batch."
115 114 }
116 115
117 116 /// Stable status text shared by `--status` and the window.
@@ -248,11 +247,11 @@ mod tests {
248 247 availability(Capability::SkeletalAnimation),
249 248 Availability::Present
250 249 );
251 for capability in [
252 Capability::AttachmentEditor,
253 Capability::PaperdollRender,
254 Capability::Preview2d,
255 ] {
250 assert_eq!(
251 availability(Capability::AttachmentEditor),
252 Availability::Present
253 );
254 for capability in [Capability::PaperdollRender, Capability::Preview2d] {
256 255 assert_eq!(
257 256 availability(capability),
258 257 Availability::NotBuilt,
@@ -262,7 +261,7 @@ mod tests {
262 261 }
263 262
264 263 #[test]
265 fn status_report_matches_the_import_build() {
264 fn status_report_matches_current_equipment_build_without_claiming_production() {
266 265 let report = report();
267 266 assert!(report.starts_with("name: Paperdoll Renderer\nphase: project-editor\n"));
268 267 for key in [
@@ -271,13 +270,14 @@ mod tests {
271 270 "gltf_glb",
272 271 "fbx",
273 272 "skeletal_animation",
273 "attachment_editor",
274 274 ] {
275 275 assert!(
276 276 report.contains(&format!("{key}: present")),
277 277 "missing present {key} in {report}"
278 278 );
279 279 }
280 for key in ["attachment_editor", "paperdoll_render", "preview_2d"] {
280 for key in ["paperdoll_render", "preview_2d"] {
281 281 assert!(
282 282 report.contains(&format!("{key}: not_built")),
283 283 "missing {key} in {report}"
@@ -1,7 +1,7 @@
1//! Honest capability report for the foundation shell.
1//! Honest capability report for the current editor.
2//!
2//!
3//! Later features add import, animation, rendering and preview. Until those
3//! Attachment authoring is present. Full production paperdoll export and the
4//! features land, this module must keep reporting them as not built.
4//! rendered 2D compositor remain not built; a shaded still is not that batch.
5
5
6/// Product capability named by the design.
6/// Product capability named by the design.
7#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -63,10 +63,9 @@ pub fn availability(capability: Capability) -> Availability {
63 | Capability::ObjMtlTextures
63 | Capability::ObjMtlTextures
64 | Capability::GltfGlb
64 | Capability::GltfGlb
65 | Capability::Fbx
65 | Capability::Fbx
66 | Capability::SkeletalAnimation => Availability::Present,
66 | Capability::SkeletalAnimation
67 Capability::AttachmentEditor | Capability::PaperdollRender | Capability::Preview2d => {
67 | Capability::AttachmentEditor => Availability::Present,
68 Availability::NotBuilt
68 Capability::PaperdollRender | Capability::Preview2d => Availability::NotBuilt,
69 }
70 }
69 }
71}
70}
72
71
@@ -111,7 +110,7 @@ pub fn dutch_state(availability: Availability) -> &'static str {
111}
110}
112
111
113pub fn dutch_summary() -> &'static str {
112pub fn dutch_summary() -> &'static str {
114 "Deze build leest glTF/GLB, FBX en OBJ+MTL, opent een .ppd-project en toont een live geskinde 3D-preview van glTF/GLB met walk en attack."
113 "Deze build leest glTF/GLB, FBX en OBJ+MTL, opent een .ppd-project en toont een live geskinde 3D-preview van glTF/GLB met walk en attack, rigide bone-gebonden OBJ-equipment en binaire .ppe-presets. Render maakt een gekleurd body-stilbeeld, geen productie-batch."
115}
114}
116
115
117/// Stable status text shared by `--status` and the window.
116/// Stable status text shared by `--status` and the window.
@@ -248,11 +247,11 @@ mod tests {
248 availability(Capability::SkeletalAnimation),
247 availability(Capability::SkeletalAnimation),
249 Availability::Present
248 Availability::Present
250 );
249 );
251 for capability in [
250 assert_eq!(
252 Capability::AttachmentEditor,
251 availability(Capability::AttachmentEditor),
253 Capability::PaperdollRender,
252 Availability::Present
254 Capability::Preview2d,
253 );
255 ] {
254 for capability in [Capability::PaperdollRender, Capability::Preview2d] {
256 assert_eq!(
255 assert_eq!(
257 availability(capability),
256 availability(capability),
258 Availability::NotBuilt,
257 Availability::NotBuilt,
@@ -262,7 +261,7 @@ mod tests {
262 }
261 }
263
262
264 #[test]
263 #[test]
265 fn status_report_matches_the_import_build() {
264 fn status_report_matches_current_equipment_build_without_claiming_production() {
266 let report = report();
265 let report = report();
267 assert!(report.starts_with("name: Paperdoll Renderer\nphase: project-editor\n"));
266 assert!(report.starts_with("name: Paperdoll Renderer\nphase: project-editor\n"));
268 for key in [
267 for key in [
@@ -271,13 +270,14 @@ mod tests {
271 "gltf_glb",
270 "gltf_glb",
272 "fbx",
271 "fbx",
273 "skeletal_animation",
272 "skeletal_animation",
273 "attachment_editor",
274 ] {
274 ] {
275 assert!(
275 assert!(
276 report.contains(&format!("{key}: present")),
276 report.contains(&format!("{key}: present")),
277 "missing present {key} in {report}"
277 "missing present {key} in {report}"
278 );
278 );
279 }
279 }
280 for key in ["attachment_editor", "paperdoll_render", "preview_2d"] {
280 for key in ["paperdoll_render", "preview_2d"] {
281 assert!(
281 assert!(
282 report.contains(&format!("{key}: not_built")),
282 report.contains(&format!("{key}: not_built")),
283 "missing {key} in {report}"
283 "missing {key} in {report}"