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 {
[key: integer]: TrainerTypeMessages | [TrainerTypeMessages, TrainerTypeMessages]
[key: integer]: TrainerTypeMessages | Array<TrainerTypeMessages>
}
export function getTrainerTypeDialogue(): TrainerTypeDialogue {
return trainerTypeDialogue;
}
export const trainerTypeDialogue = {
export const trainerTypeDialogue: TrainerTypeDialogue = {
[TrainerType.YOUNGSTER]: [
{
encounter: [

View File

@ -1635,13 +1635,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `Ich habe mich entschieden, erneut meinen Hut in den Ring zu werfen.
$Komm jetzt... Zeig mir die Früchte deines Trainings.`,
"victory": {
1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!"
},
"defeat": {
1: "Was ist los? Das ist doch nicht alles, oder?"
}
},
"victory": {
1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!"
},
"defeat": {
1: "Was ist los? Das ist doch nicht alles, oder?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -3873,13 +3873,13 @@ export const PGFdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = {
"encounter": {
1: `I decided to throw my hat in the ring once more.
$Come now Show me the fruits of your training.`,
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"victory": {
1: "I eagerly await news of all your achievements!"
},
"defeat": {
1: "What's the matter? This isn't all, is it?"
}
},
"nemona": {
"encounter": {
@ -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.
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)
export const PGMbattleSpecDialogue: SimpleTranslationEntries = {

View File

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