create working game lists in go

This commit is contained in:
cyber-dream 2022-10-18 03:23:46 +03:00
parent 4e457268d5
commit 88f024dfbc
4 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,4 @@ export class AppComponent {
}); });
//GetVersion(); //GetVersion();
} }
RunGame() {
//RunGame();
}
} }

View File

@ -1,5 +1,6 @@
export interface Game { export interface Game {
id: number; id: number; //TODO: Заменить на строку
gameId: string
title: string; title: string;
image: string; image: string;
description: string; description: string;

View File

@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface';
export interface Go extends Window { export interface Go extends Window {
GetGames: () => Promise<Game[]>; GetGames: () => Promise<Game[]>;
GoRunGame: (gameId: number) => void; GoRunGame: (gameId: string) => void;
} }
export interface GoCallback extends Window { export interface GoCallback extends Window {

View File

@ -15,6 +15,9 @@ export class LauncherService {
public RunGame(game: Game){ public RunGame(game: Game){
//console.log(game) //console.log(game)
GoRunGame(game.id) GoRunGame(game.gameId)
// console.log(game)
// console.log(game.title)
// console.log(game.gameId)
} }
} }