12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
import { Command } from '@colyseus/command'
|
|
import { CardGameState } from '../schema/CardGameState'
|
|
import { Client } from 'colyseus'
|
|
|
|
export class PauseCommand extends Command<CardGameState, { client: Client }> {
|
|
|
|
execute({ client } = this.payload) {
|
|
let result = this.room.pauseAllSchedule()
|
|
client.send('pause_s2c', {})
|
|
}
|
|
}
|