create working game lists in go
This commit is contained in:
parent
4e457268d5
commit
88f024dfbc
@ -18,8 +18,4 @@ export class AppComponent {
|
||||
});
|
||||
//GetVersion();
|
||||
}
|
||||
|
||||
RunGame() {
|
||||
//RunGame();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
export interface Game {
|
||||
id: number;
|
||||
id: number; //TODO: Заменить на строку
|
||||
gameId: string
|
||||
title: string;
|
||||
image: string;
|
||||
description: string;
|
||||
|
@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface';
|
||||
|
||||
export interface Go extends Window {
|
||||
GetGames: () => Promise<Game[]>;
|
||||
GoRunGame: (gameId: number) => void;
|
||||
GoRunGame: (gameId: string) => void;
|
||||
}
|
||||
|
||||
export interface GoCallback extends Window {
|
||||
|
@ -15,6 +15,9 @@ export class LauncherService {
|
||||
|
||||
public RunGame(game: Game){
|
||||
//console.log(game)
|
||||
GoRunGame(game.id)
|
||||
GoRunGame(game.gameId)
|
||||
// console.log(game)
|
||||
// console.log(game.title)
|
||||
// console.log(game.gameId)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user