修改游戏结果统计数据的字段名
This commit is contained in:
parent
3d05eb8fc6
commit
6901d22c52
@ -1,4 +1,4 @@
|
|||||||
import {Client, generateId, Room} from "colyseus";
|
import {Client, Room} from "colyseus";
|
||||||
import {CardGameState} from "./schema/CardGameState";
|
import {CardGameState} from "./schema/CardGameState";
|
||||||
import {OnJoinCommand} from "./commands/OnJoinCommand";
|
import {OnJoinCommand} from "./commands/OnJoinCommand";
|
||||||
import {PlayReadyCommand} from "./commands/PlayReadyCommand";
|
import {PlayReadyCommand} from "./commands/PlayReadyCommand";
|
||||||
@ -19,8 +19,6 @@ import {GMCommand} from "./commands/GMCommand";
|
|||||||
import {GameStateConst} from "../constants/GameStateConst";
|
import {GameStateConst} from "../constants/GameStateConst";
|
||||||
import {GameRestartCommand} from "./commands/GameRestartCommand";
|
import {GameRestartCommand} from "./commands/GameRestartCommand";
|
||||||
import {RobotClient} from "../robot/RobotClient";
|
import {RobotClient} from "../robot/RobotClient";
|
||||||
import axios from 'axios';
|
|
||||||
import {wait} from "../decorators/cfg";
|
|
||||||
import {ChangePetCommand} from "./commands/ChangePetCommand";
|
import {ChangePetCommand} from "./commands/ChangePetCommand";
|
||||||
import {createRobot} from "../common/WebApi";
|
import {createRobot} from "../common/WebApi";
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ export class GameResultCommand extends Command<CardGameState, {}> {
|
|||||||
val: val[1]
|
val: val[1]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
resultData[statics] = statics;
|
resultData['statics'] = statics;
|
||||||
let self = this;
|
let self = this;
|
||||||
this.room.bGameResult(resultData);
|
this.room.bGameResult(resultData);
|
||||||
this.state.updateGameState(GameStateConst.STATE_GAME_OVER);
|
this.state.updateGameState(GameStateConst.STATE_GAME_OVER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user