fix dialogue interface structure

This commit is contained in:
Matthew Olker 2024-05-28 12:32:01 -04:00
parent e37b278b4f
commit e7cef039c3
10 changed files with 66 additions and 71 deletions

View File

@ -9,14 +9,14 @@ export interface TrainerTypeMessages {
} }
export interface TrainerTypeDialogue { export interface TrainerTypeDialogue {
[key: integer]: TrainerTypeMessages | [TrainerTypeMessages, TrainerTypeMessages] [key: integer]: TrainerTypeMessages | Array<TrainerTypeMessages>
} }
export function getTrainerTypeDialogue(): TrainerTypeDialogue { export function getTrainerTypeDialogue(): TrainerTypeDialogue {
return trainerTypeDialogue; return trainerTypeDialogue;
} }
export const trainerTypeDialogue = { export const trainerTypeDialogue: TrainerTypeDialogue = {
[TrainerType.YOUNGSTER]: [ [TrainerType.YOUNGSTER]: [
{ {
encounter: [ encounter: [

View File

@ -1635,6 +1635,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `Ich habe mich entschieden, erneut meinen Hut in den Ring zu werfen. 1: `Ich habe mich entschieden, erneut meinen Hut in den Ring zu werfen.
$Komm jetzt... Zeig mir die Früchte deines Trainings.`, $Komm jetzt... Zeig mir die Früchte deines Trainings.`,
},
"victory": { "victory": {
1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!" 1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!"
}, },
@ -1642,7 +1643,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "Was ist los? Das ist doch nicht alles, oder?" 1: "Was ist los? Das ist doch nicht alles, oder?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! Ich bin so aufgeregt! Zeit, dass wir uns austoben!" 1: "Yesss! Ich bin so aufgeregt! Zeit, dass wir uns austoben!"
@ -2337,7 +2337,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
}; };
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -3873,6 +3873,7 @@ export const PGFdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -3880,7 +3881,6 @@ export const PGFdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,6 +1595,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": { "encounter": {
1: `I decided to throw my hat in the ring once more. 1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`, $Come now Show me the fruits of your training.`,
},
"victory": { "victory": {
1: "I eagerly await news of all your achievements!" 1: "I eagerly await news of all your achievements!"
}, },
@ -1602,7 +1603,6 @@ export const PGMdialogue: DialogueTranslationEntries = {
1: "What's the matter? This isn't all, is it?" 1: "What's the matter? This isn't all, is it?"
} }
}, },
},
"nemona": { "nemona": {
"encounter": { "encounter": {
1: "Yesss! I'm so psyched! Time for us to let loose!" 1: "Yesss! I'm so psyched! Time for us to let loose!"
@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = {
// Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue.
export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; export const PGFdialogue: DialogueTranslationEntries = PGMdialogue;
// Dialogue of the endboss of the game when the player character is male (Or unset) // Dialogue of the endboss of the game when the player character is male (Or unset)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = { export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -65,19 +65,14 @@ export interface DialogueTranslationEntry {
} }
export interface DialogueTranslationCategory { export interface DialogueTranslationCategory {
encounter: DialogueTranslationEntry; [category: string]: DialogueTranslationEntry;
victory: DialogueTranslationEntry;
defeat?: DialogueTranslationEntry;
}
export interface DialogueTranslationTrainerClass {
[key: string]: DialogueTranslationCategory;
} }
export interface DialogueTranslationEntries { export interface DialogueTranslationEntries {
[key: string]: DialogueTranslationTrainerClass; [trainertype: string]: DialogueTranslationCategory;
} }
export interface Localizable { export interface Localizable {
localize(): void; localize(): void;
} }