落地方洞挑战图片与运行态交互
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
kdletters
2026-05-06 12:51:28 +08:00
parent 60b667a9d1
commit d06107f2c6
51 changed files with 2590 additions and 989 deletions

View File

@@ -3084,6 +3084,7 @@ fn map_square_hole_shape_snapshot(
shape_id: snapshot.shape_id,
shape_kind: snapshot.shape_kind,
label: snapshot.label,
target_hole_id: snapshot.target_hole_id,
color: snapshot.color,
image_src: empty_string_to_none(snapshot.image_src),
}
@@ -3098,7 +3099,7 @@ fn map_square_hole_hole_snapshot(
label: snapshot.label,
x: snapshot.x,
y: snapshot.y,
bonus: snapshot.bonus,
image_src: empty_string_to_none(snapshot.image_src),
}
}
@@ -3109,6 +3110,7 @@ fn map_square_hole_shape_option(
option_id: snapshot.option_id,
shape_kind: snapshot.shape_kind,
label: snapshot.label,
target_hole_id: snapshot.target_hole_id,
image_prompt: snapshot.image_prompt,
image_src: empty_string_to_none(snapshot.image_src),
}
@@ -3121,7 +3123,8 @@ fn map_square_hole_hole_option(
hole_id: snapshot.hole_id,
hole_kind: snapshot.hole_kind,
label: snapshot.label,
bonus: snapshot.bonus,
image_prompt: snapshot.image_prompt,
image_src: empty_string_to_none(snapshot.image_src),
}
}
@@ -6136,6 +6139,7 @@ pub struct SquareHoleShapeOptionRecord {
pub option_id: String,
pub shape_kind: String,
pub label: String,
pub target_hole_id: String,
pub image_prompt: String,
pub image_src: Option<String>,
}
@@ -6145,7 +6149,8 @@ pub struct SquareHoleHoleOptionRecord {
pub hole_id: String,
pub hole_kind: String,
pub label: String,
pub bonus: bool,
pub image_prompt: String,
pub image_src: Option<String>,
}
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -6222,6 +6227,7 @@ pub struct SquareHoleShapeSnapshotRecord {
pub shape_id: String,
pub shape_kind: String,
pub label: String,
pub target_hole_id: String,
pub color: String,
pub image_src: Option<String>,
}
@@ -6233,7 +6239,7 @@ pub struct SquareHoleHoleSnapshotRecord {
pub label: String,
pub x: f32,
pub y: f32,
pub bonus: bool,
pub image_src: Option<String>,
}
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -6302,6 +6308,8 @@ struct SquareHoleShapeOptionJsonRecord {
option_id: String,
shape_kind: String,
label: String,
#[serde(default)]
target_hole_id: String,
image_prompt: String,
#[serde(default)]
image_src: String,
@@ -6314,6 +6322,10 @@ struct SquareHoleHoleOptionJsonRecord {
hole_kind: String,
label: String,
#[serde(default)]
image_prompt: String,
#[serde(default)]
image_src: String,
#[serde(default)]
bonus: bool,
}
@@ -6412,6 +6424,8 @@ struct SquareHoleShapeJsonRecord {
shape_id: String,
shape_kind: String,
label: String,
#[serde(default)]
target_hole_id: String,
color: String,
#[serde(default)]
image_src: String,
@@ -6426,6 +6440,8 @@ struct SquareHoleHoleJsonRecord {
x: f32,
y: f32,
#[serde(default)]
image_src: String,
#[serde(default)]
bonus: bool,
}