MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / addQuestion

Method addQuestion

code/main/Lighthouse.ts:91–98  ·  view source on GitHub ↗
(id: string, text: string, translatedText: string = null)

Source from the content-addressed store, hash-verified

89
90 // Private methods
91 private addQuestion(id: string, text: string, translatedText: string = null): void{
92 this.questionsArray.push(id);
93
94 if(translatedText == null)
95 this.questionsArray.push(text);
96 else
97 this.questionsArray.push(text + (translatedText != ""? " (" + translatedText + ")":""));
98 }
99
100 private ask(): void{
101 this.speechId = this.selectedQuestionId + "Speech";

Callers 1

createQuestionsArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected