游戏记录增加赛季标签

This commit is contained in:
zhl 2021-01-12 17:36:29 +08:00
parent 933f458b04
commit ceb0b8f4a2

View File

@ -45,6 +45,12 @@ class GameRecordClass extends Base<string>{
public round: number; public round: number;
@prop() @prop()
public winner: number; public winner: number;
/**
*
* @type {number} 0: 匹配, 1: 对应赛季
*/
@prop()
public season: number;
@prop({_id: false, type: () => [GamePlayer]}) @prop({_id: false, type: () => [GamePlayer]})
public players: GamePlayer[]; public players: GamePlayer[];
@ -54,6 +60,7 @@ class GameRecordClass extends Base<string>{
roomid: this.roomid, roomid: this.roomid,
round: this.round, round: this.round,
winner: this.winner, winner: this.winner,
season: this.season,
players: '', players: '',
} }