From ceb0b8f4a2d617693359a2c42424da13b2d2d906 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 12 Jan 2021 17:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E8=AE=B0=E5=BD=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=B5=9B=E5=AD=A3=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/GameRecord.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/models/GameRecord.ts b/src/models/GameRecord.ts index e01a611..dc8ef52 100644 --- a/src/models/GameRecord.ts +++ b/src/models/GameRecord.ts @@ -45,6 +45,12 @@ class GameRecordClass extends Base{ public round: number; @prop() public winner: number; + /** + * 赛季 + * @type {number} 0: 匹配, 1: 对应赛季 + */ + @prop() + public season: number; @prop({_id: false, type: () => [GamePlayer]}) public players: GamePlayer[]; @@ -54,6 +60,7 @@ class GameRecordClass extends Base{ roomid: this.roomid, round: this.round, winner: this.winner, + season: this.season, players: '', }