🚧 Created independant game_control and game_state classes

This commit is contained in:
Proxyfil
2026-04-22 20:59:24 +02:00
parent a90f8008db
commit 4ed0b8d626
2 changed files with 71 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
export class GameState {
public game_id: string;
public players: any[];
public selected_question: number;
public timer_res: string;
public question_results: any;
public answer_count: number;
public shown_question_now: number;
public final_results: any;
constructor(game_id: string, players: any[]) {
this.game_id = game_id;
this.players = players;
this.selected_question = -1;
this.timer_res = '0';
this.question_results = null;
this.answer_count = 0;
this.shown_question_now = -1;
this.final_results = null;
}
}