Spiel Beitreten
- Hier kannst du einem bestehenden Spiel beitreten, indem du den Spiel Code eingibst, die dir dein Freund gegeben hat.
+ Hier kannst du einem bestehenden Spiel beitreten, indem du den Spiel Code eingibst, die dir
+ dein Freund gegeben hat.
+
Abbrechen
Beitreten
diff --git a/GUI/src/routes/OnlineMode.vue b/GUI/src/routes/OnlineMode.vue
index 7818b12..fde9a19 100644
--- a/GUI/src/routes/OnlineMode.vue
+++ b/GUI/src/routes/OnlineMode.vue
@@ -1,7 +1,12 @@
@@ -30,9 +47,32 @@ var currentState = ref(CurrentState.CreateOrJoinSelection);
+
+
+
+
+
+
diff --git a/GUI/src/scripts/interfaces/JoinGameObject.ts b/GUI/src/scripts/interfaces/JoinGameObject.ts
new file mode 100644
index 0000000..6e99989
--- /dev/null
+++ b/GUI/src/scripts/interfaces/JoinGameObject.ts
@@ -0,0 +1,4 @@
+export default interface JoinGameObject {
+ failed: boolean;
+ gameCode?: number;
+}
diff --git a/GUI/src/scripts/logic/onlineMode/OnlineGame.ts b/GUI/src/scripts/logic/onlineMode/OnlineGame.ts
index 8231f4e..3618f55 100644
--- a/GUI/src/scripts/logic/onlineMode/OnlineGame.ts
+++ b/GUI/src/scripts/logic/onlineMode/OnlineGame.ts
@@ -1,7 +1,7 @@
-import type { GameSettings } from "@/scripts/interfaces/GameSettings";
-import GameConnection, { type GameEnded, type GameInformationDto } from "../signalR/GameConnection";
+import type { GameSettings } from '@/scripts/interfaces/GameSettings';
+import GameConnection, { type GameEnded, type GameInformationDto } from '../signalR/GameConnection';
-class LocalGame {
+class OnlineGame {
public player: GameConnection;
public currentDescription: string = 'Warte auf Spielaufbau ...';
private gameId: string = '';
@@ -13,4 +13,10 @@ class LocalGame {
constructor(settings: GameSettings) {
this.player = new GameConnection();
}
+
+ async drop(index: number){
+
+ }
}
+
+export default OnlineGame;