From 24bf23e895aaa687dbf46e8f40f7ddc6b80efed2 Mon Sep 17 00:00:00 2001 From: yhl452493373 Date: Sat, 15 Jun 2024 02:19:11 +0800 Subject: [PATCH] Add raid code --- src/controllers/FikaRaidController.ts | 1 + src/models/fika/IFikaMatch.ts | 1 + src/models/fika/routes/raid/create/IFikaRaidCreateRequestData.ts | 1 + src/models/fika/routes/raid/join/IFikaRaidJoinResponse.ts | 1 + src/services/FikaMatchService.ts | 1 + 5 files changed, 5 insertions(+) diff --git a/src/controllers/FikaRaidController.ts b/src/controllers/FikaRaidController.ts index 015b2476..f3f4ad00 100644 --- a/src/controllers/FikaRaidController.ts +++ b/src/controllers/FikaRaidController.ts @@ -43,6 +43,7 @@ export class FikaRaidController { expectedNumberOfPlayers: match.expectedNumberOfPlayers, gameVersion: match.gameVersion, fikaVersion: match.fikaVersion, + raidCode: match.raidCode }; } diff --git a/src/models/fika/IFikaMatch.ts b/src/models/fika/IFikaMatch.ts index 51d98c9c..37fac1a5 100644 --- a/src/models/fika/IFikaMatch.ts +++ b/src/models/fika/IFikaMatch.ts @@ -22,4 +22,5 @@ export interface IFikaMatch { players: Map; side: FikaSide; time: FikaTime; + raidCode: string; } diff --git a/src/models/fika/routes/raid/create/IFikaRaidCreateRequestData.ts b/src/models/fika/routes/raid/create/IFikaRaidCreateRequestData.ts index c6d9ded4..7ca17490 100644 --- a/src/models/fika/routes/raid/create/IFikaRaidCreateRequestData.ts +++ b/src/models/fika/routes/raid/create/IFikaRaidCreateRequestData.ts @@ -3,6 +3,7 @@ import { FikaSide } from "../../../../enums/FikaSide"; import { FikaTime } from "../../../../enums/FikaTime"; export interface IFikaRaidCreateRequestData { + raidCode: string; serverId: string; hostUsername: string; timestamp: string; diff --git a/src/models/fika/routes/raid/join/IFikaRaidJoinResponse.ts b/src/models/fika/routes/raid/join/IFikaRaidJoinResponse.ts index 33f9e63b..c28fe997 100644 --- a/src/models/fika/routes/raid/join/IFikaRaidJoinResponse.ts +++ b/src/models/fika/routes/raid/join/IFikaRaidJoinResponse.ts @@ -4,4 +4,5 @@ export interface IFikaRaidJoinResponse { expectedNumberOfPlayers: number; gameVersion: string; fikaVersion: string; + raidCode: string; } diff --git a/src/services/FikaMatchService.ts b/src/services/FikaMatchService.ts index f70d00a5..47016eaf 100644 --- a/src/services/FikaMatchService.ts +++ b/src/services/FikaMatchService.ts @@ -201,6 +201,7 @@ export class FikaMatchService { fikaVersion: data.fikaVersion, side: data.side, time: data.time, + raidCode: data.raidCode }); this.addTimeoutInterval(data.serverId);