游戏结果增加返回heroId
This commit is contained in:
parent
a7a4069e6b
commit
57732b6de4
@ -24,6 +24,7 @@ class GameResult {
|
|||||||
public scoreChange: number
|
public scoreChange: number
|
||||||
public scoreOld: number
|
public scoreOld: number
|
||||||
public stat: any
|
public stat: any
|
||||||
|
public heroId: number
|
||||||
|
|
||||||
constructor(player: Player) {
|
constructor(player: Player) {
|
||||||
this.id = player.id
|
this.id = player.id
|
||||||
@ -32,6 +33,7 @@ class GameResult {
|
|||||||
this.alive = player.state != PlayerStateConst.PLAYER_DEAD
|
this.alive = player.state != PlayerStateConst.PLAYER_DEAD
|
||||||
this.ap = gameUtil.calcTotalAp(player)
|
this.ap = gameUtil.calcTotalAp(player)
|
||||||
this.scoreOld = player.score
|
this.scoreOld = player.score
|
||||||
|
this.heroId = player.heroId
|
||||||
this.stat = {}
|
this.stat = {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user