GameElementHistory
type GameElementHistory =
| {
type: "say";
text: string;
voice: string | null;
character: string | null;
}
| {
type: "menu";
text: string;
selected: string | null;
};The GameElementHistory type represents different types of game elements that can be recorded in the history. It can be either:
-
A "say" element:
text: The spoken textvoice: The voice src URL or null if no voice was usedcharacter: The character name or null if the sentence is not spoken by a character
-
A "menu" element:
text: The menu textselected: The selected option or null if the menu is still pending