游戏结果增加返回heroId

This commit is contained in:
zhl 2021-03-18 15:00:10 +08:00
parent a7a4069e6b
commit 57732b6de4

View File

@ -24,6 +24,7 @@ class GameResult {
public scoreChange: number
public scoreOld: number
public stat: any
public heroId: number
constructor(player: Player) {
this.id = player.id
@ -32,6 +33,7 @@ class GameResult {
this.alive = player.state != PlayerStateConst.PLAYER_DEAD
this.ap = gameUtil.calcTotalAp(player)
this.scoreOld = player.score
this.heroId = player.heroId
this.stat = {}
}
}