Remove speakerName from ProjectDialogueLine
This commit is contained in:
@@ -2,7 +2,6 @@ import { createOpaqueId } from "../core/ids";
|
|||||||
|
|
||||||
export interface ProjectDialogueLine {
|
export interface ProjectDialogueLine {
|
||||||
id: string;
|
id: string;
|
||||||
speakerName: string | null;
|
|
||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,7 +26,6 @@ export function createProjectDialogueLine(
|
|||||||
): ProjectDialogueLine {
|
): ProjectDialogueLine {
|
||||||
return {
|
return {
|
||||||
id: overrides.id ?? createOpaqueId("dialogue-line"),
|
id: overrides.id ?? createOpaqueId("dialogue-line"),
|
||||||
speakerName: overrides.speakerName?.trim() || null,
|
|
||||||
text: overrides.text ?? "..."
|
text: overrides.text ?? "..."
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -52,7 +50,6 @@ export function cloneProjectDialogueLine(
|
|||||||
): ProjectDialogueLine {
|
): ProjectDialogueLine {
|
||||||
return {
|
return {
|
||||||
id: line.id,
|
id: line.id,
|
||||||
speakerName: line.speakerName,
|
|
||||||
text: line.text
|
text: line.text
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -84,11 +81,7 @@ export function areProjectDialogueLinesEqual(
|
|||||||
left: ProjectDialogueLine,
|
left: ProjectDialogueLine,
|
||||||
right: ProjectDialogueLine
|
right: ProjectDialogueLine
|
||||||
): boolean {
|
): boolean {
|
||||||
return (
|
return left.id === right.id && left.text === right.text;
|
||||||
left.id === right.id &&
|
|
||||||
left.speakerName === right.speakerName &&
|
|
||||||
left.text === right.text
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function areProjectDialoguesEqual(
|
export function areProjectDialoguesEqual(
|
||||||
|
|||||||
Reference in New Issue
Block a user