bug fix
This commit is contained in:
parent
1ad636dfeb
commit
13041f4f41
@ -7,7 +7,7 @@ import {GameEnv} from "../../cfg/GameEnv";
|
||||
|
||||
export class Player extends Schema {
|
||||
@type("string")
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
@type("number")
|
||||
heroId: number;
|
||||
@ -54,6 +54,7 @@ export class Player extends Schema {
|
||||
//TODO: set hp, ap from cfg
|
||||
constructor(id: string, heroId: number, team: number) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.state = 0;
|
||||
this.hp = 200;
|
||||
this.ap = 30;
|
||||
|
Loading…
x
Reference in New Issue
Block a user